Commit fbde0133 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Only wait on the completion port if no entries were returned.

parent 247ae983
......@@ -1371,9 +1371,10 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE port, FILE_IO_COMPLETION_INFORMAT
if (i++ >= count) break;
}
if (i && ret == STATUS_PENDING)
if (i || ret != STATUS_PENDING)
{
ret = STATUS_SUCCESS;
if (ret == STATUS_PENDING)
ret = STATUS_SUCCESS;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment