mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- Add sanity checks
svn path=/trunk/; revision=42609
This commit is contained in:
parent
20a819d000
commit
37a75e27df
1 changed files with 4 additions and 0 deletions
|
@ -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