Zebediah Figura : ntdll: Only wait on the completion port if no entries were returned.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 15:59:37 CST 2018
Module: wine
Branch: master
Commit: fbde01335fef80d36975adbc9e2de9f382d57874
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fbde01335fef80d36975adbc9e2de9f382d57874
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Nov 17 20:06:16 2018 -0600
ntdll: Only wait on the completion port if no entries were returned.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/sync.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index a00a159..3037e58 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -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;
}
More information about the wine-cvs
mailing list