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

@@ -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;