ReadFile should return 0 to lpNumberOfBytesRead if NtReadFile returned
STATUS_END_OF_FILE for synchronous operations
Modified: trunk/reactos/lib/kernel32/file/rw.c
_____
Modified: trunk/reactos/lib/kernel32/file/rw.c
--- trunk/reactos/lib/kernel32/file/rw.c 2005-05-06 22:55:52 UTC
(rev 15066)
+++ trunk/reactos/lib/kernel32/file/rw.c 2005-05-07 00:21:06 UTC
(rev 15067)
@@ -221,7 +221,7 @@
/* lpNumberOfBytesRead must not be NULL here, in fact Win
doesn't
check that case either and crashes (only after the
operation
completed) */
- *lpNumberOfBytesRead = Iosb.Information;
+ *lpNumberOfBytesRead = 0;
return TRUE;
}