Skip to content
Snippets Groups Projects
Commit fbde0133 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

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

parent 247ae983
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment