ntdll: Don't poll() on a normal file; it should never block.

This commit is contained in:
Ken Thomases 2008-11-12 12:15:31 -06:00 committed by Alexandre Julliard
parent 77ca0d8935
commit 974b8d802c
1 changed files with 2 additions and 0 deletions

View File

@ -612,6 +612,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
goto done;
}
}
else if (type == FD_TYPE_FILE) continue; /* no async I/O on regular files */
}
else
{
@ -940,6 +941,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
status = STATUS_SUCCESS;
goto done;
}
if (type == FD_TYPE_FILE) continue; /* no async I/O on regular files */
}
else
{