Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45948 Signed-off-by: Zebediah Figura z.figura12@gmail.com --- v2: reorder to avoid test failures.
dlls/ntdll/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index 3037e58463..0c373a4c88 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -1351,7 +1351,7 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE port, FILE_IO_COMPLETION_INFORMAT
for (;;) { - for (;;) + while (i < count) { SERVER_START_REQ( remove_completion ) { @@ -1368,7 +1368,7 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE port, FILE_IO_COMPLETION_INFORMAT
if (ret != STATUS_SUCCESS) break;
- if (i++ >= count) break; + ++i; }
if (i || ret != STATUS_PENDING)