ntdll: Avoid overwriting the result of the async I/O callback in NtFsControlFile.

This commit is contained in:
Alexandre Julliard 2007-03-23 14:02:13 +01:00
parent ad3faa829c
commit c0fca0a186
1 changed files with 2 additions and 6 deletions

View File

@ -941,9 +941,7 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc
if (!event && io->u.Status == STATUS_PENDING)
{
do
io->u.Status = NtWaitForSingleObject(internal_event, TRUE, NULL);
while(io->u.Status == STATUS_USER_APC);
while (NtWaitForSingleObject(internal_event, TRUE, NULL) == STATUS_USER_APC) /*nothing*/ ;
}
if (internal_event) NtClose(internal_event);
}
@ -975,9 +973,7 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc
if (!event && io->u.Status == STATUS_PENDING)
{
do
io->u.Status = NtWaitForSingleObject(internal_event, TRUE, NULL);
while(io->u.Status == STATUS_USER_APC);
while (NtWaitForSingleObject(internal_event, TRUE, NULL) == STATUS_USER_APC) /*nothing*/ ;
}
if (internal_event) NtClose(internal_event);
}