mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 08:54:40 +00:00
error msg on bad call
svn path=/trunk/; revision=38994
This commit is contained in:
parent
ea36a66139
commit
d4835adc0b
|
@ -132,6 +132,10 @@ DeviceIoControl(IN HANDLE hDevice,
|
||||||
/* lpBytesReturned must not be NULL here, in fact Win doesn't
|
/* lpBytesReturned must not be NULL here, in fact Win doesn't
|
||||||
check that case either and crashes (only after the operation
|
check that case either and crashes (only after the operation
|
||||||
completed) */
|
completed) */
|
||||||
|
if (!lpBytesReturned)
|
||||||
|
{
|
||||||
|
ERR("Bad caller: lpBytesReturned must not be NULL");
|
||||||
|
}
|
||||||
*lpBytesReturned = Iosb.Information;
|
*lpBytesReturned = Iosb.Information;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -184,6 +188,10 @@ GetOverlappedResult (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!lpNumberOfBytesTransferred)
|
||||||
|
{
|
||||||
|
ERR("Bad caller: lpNumberOfBytesTransferred must not be NULL");
|
||||||
|
}
|
||||||
*lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
|
*lpNumberOfBytesTransferred = lpOverlapped->InternalHigh;
|
||||||
|
|
||||||
if (!NT_SUCCESS(lpOverlapped->Internal))
|
if (!NT_SUCCESS(lpOverlapped->Internal))
|
||||||
|
|
Loading…
Reference in a new issue