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@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fbde01335f
commit
e09248d363
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue