[ros-diffs] [cwittich] 44099: return TRUE in ReadFile if there is nothing to read

cwittich at svn.reactos.org cwittich at svn.reactos.org
Wed Nov 11 09:29:09 CET 2009


Author: cwittich
Date: Wed Nov 11 09:29:08 2009
New Revision: 44099

URL: http://svn.reactos.org/svn/reactos?rev=44099&view=rev
Log:
return TRUE in ReadFile if there is nothing to read

Modified:
    trunk/reactos/dll/win32/kernel32/file/rw.c

Modified: trunk/reactos/dll/win32/kernel32/file/rw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/rw.c?rev=44099&r1=44098&r2=44099&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/rw.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/rw.c [iso-8859-1] Wed Nov 11 09:29:08 2009
@@ -144,6 +144,11 @@
         *lpNumberOfBytesRead = 0;
      }
 
+   if (!nNumberOfBytesToRead)
+     {
+        return TRUE;
+     }
+
    hFile = TranslateStdHandle(hFile);
 
    if (IsConsoleHandle(hFile))




More information about the Ros-diffs mailing list