Author: cwittich
Date: Wed Jan 21 07:27:18 2009
New Revision: 38994
URL:
http://svn.reactos.org/svn/reactos?rev=38994&view=rev
Log:
error msg on bad call
Modified:
trunk/reactos/dll/win32/kernel32/file/deviceio.c
Modified: trunk/reactos/dll/win32/kernel32/file/deviceio.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/de…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/deviceio.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/deviceio.c [iso-8859-1] Wed Jan 21 07:27:18
2009
@@ -132,6 +132,10 @@
/* lpBytesReturned must not be NULL here, in fact Win doesn't
check that case either and crashes (only after the operation
completed) */
+ if (!lpBytesReturned)
+ {
+ ERR("Bad caller: lpBytesReturned must not be NULL");
+ }
*lpBytesReturned = Iosb.Information;
}
else
@@ -184,6 +188,10 @@
}
}
+ if (!lpNumberOfBytesTransferred)
+ {
+ ERR("Bad caller: lpNumberOfBytesTransferred must not be NULL");
+ }
*lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
if (!NT_SUCCESS(lpOverlapped->Internal))