Commit e09248d3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Don't write more IOCP entries than requested.

parent fbde0133
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment