Skip to content
Snippets Groups Projects
Commit e09248d3 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

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

parent fbde0133
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment