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

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 31 08:33:37 CDT 2007


Module: wine
Branch: master
Commit: 197bddfb8782eeadd0b866838fb400d95e5ea690
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=197bddfb8782eeadd0b866838fb400d95e5ea690

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 31 12:19:03 2007 +0200

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

---

 dlls/ntdll/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 3265ed5..dc39735 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -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;
             }
         }




More information about the wine-cvs mailing list