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…
==============================================================================
--- 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))