Author: cwittich
Date: Wed Jan 21 06:50:24 2009
New Revision: 38992
URL:
http://svn.reactos.org/svn/reactos?rev=38992&view=rev
Log:
check for null (fixes ole32 compobj winetest crash)
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 06:50:24
2009
@@ -184,7 +184,9 @@
}
}
- *lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
+
+ if (lpNumberOfBytesTransferred)
+ *lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
if (!NT_SUCCESS(lpOverlapped->Internal))
{