Rewrite XIOCompletion::WaitForNotification

This commit is contained in:
Dr. Chat
2016-08-06 18:14:26 -05:00
parent 1de47e0d17
commit 9b86132fd0
3 changed files with 12 additions and 17 deletions

View File

@@ -368,8 +368,8 @@ dword_result_t NtRemoveIoCompletion(
}
uint64_t timeout_ticks = timeout ? static_cast<uint32_t>(*timeout) : 0u;
if (port->WaitForNotification(timeout_ticks)) {
auto notification = port->DequeueNotification();
XIOCompletion::IONotification notification;
if (port->WaitForNotification(timeout_ticks, &notification)) {
if (key_context) {
*key_context = notification.key_context;
}