Zebediah Figura : ntdll: Don't write more IOCP entries than requested.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 15:59:37 CST 2018
Module: wine
Branch: master
Commit: e09248d3633522474c11e733238f5fd01a3e4f70
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e09248d3633522474c11e733238f5fd01a3e4f70
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Nov 17 20:06:17 2018 -0600
ntdll: Don't write more IOCP entries than requested.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45948
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 3037e58..0c373a4 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)
More information about the wine-cvs
mailing list