Commit 974b8d80 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 77ca0d89
......@@ -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
{
......
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