mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
- Add sanity checks
svn path=/trunk/; revision=42609
This commit is contained in:
parent
20a819d000
commit
37a75e27df
|
@ -157,6 +157,10 @@ StreamClassStartDevice(
|
|||
/* Get driver object extension */
|
||||
DriverObjectExtension = IoGetDriverObjectExtension(DeviceObject->DriverObject, (PVOID)StreamClassAddDevice);
|
||||
|
||||
/* sanity checks */
|
||||
ASSERT(DeviceExtension);
|
||||
ASSERT(DriverObjectExtension);
|
||||
|
||||
/* Zero request block */
|
||||
RtlZeroMemory(RequestBlock, ResultLength);
|
||||
|
||||
|
|
Loading…
Reference in a new issue