ntdll: Report end of file instead of broken pipe on char devices.

This commit is contained in:
Alexandre Julliard 2007-05-31 12:19:03 +02:00
parent 9db8574540
commit 197bddfb87
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
if (total)
status = STATUS_SUCCESS;
else
status = (type == FD_TYPE_FILE) ? STATUS_END_OF_FILE : STATUS_PIPE_BROKEN;
status = (type == FD_TYPE_FILE || type == FD_TYPE_CHAR) ? STATUS_END_OF_FILE : STATUS_PIPE_BROKEN;
goto done;
}
}