mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
error msg on bad call
svn path=/trunk/; revision=38994
This commit is contained in:
@@ -132,6 +132,10 @@ DeviceIoControl(IN HANDLE hDevice,
|
||||
/* 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 @@ GetOverlappedResult (
|
||||
}
|
||||
}
|
||||
|
||||
if (!lpNumberOfBytesTransferred)
|
||||
{
|
||||
ERR("Bad caller: lpNumberOfBytesTransferred must not be NULL");
|
||||
}
|
||||
*lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
|
||||
|
||||
if (!NT_SUCCESS(lpOverlapped->Internal))
|
||||
|
||||
Reference in New Issue
Block a user