Properly reset completion event

This commit is contained in:
Igor Pissolati
2025-05-21 12:13:24 -03:00
parent d75d70e5ec
commit 4b51123cd1
2 changed files with 5 additions and 8 deletions

View File

@@ -523,14 +523,6 @@ namespace
return STATUS_NOT_SUPPORTED;
}
if (this->delayed_ioctl_)
{
if (auto* e = win_emu.process.events.get(c.event))
{
e->signaled = false;
}
}
const auto request = _AFD_REQUEST(c.io_control_code);
win_emu.log.print(color::dark_gray, "--> AFD IOCTL: 0x%X (%d)\n", c.io_control_code, request);

View File

@@ -441,6 +441,11 @@ namespace syscalls
return STATUS_INVALID_HANDLE;
}
if (auto* e = c.win_emu.process.events.get(event))
{
e->signaled = false;
}
io_device_context context{c.emu};
context.event = event;
context.apc_routine = apc_routine;