Author: janderwald
Date: Tue Aug 11 11:41:33 2009
New Revision: 42609
URL:
http://svn.reactos.org/svn/reactos?rev=42609&view=rev
Log:
- Add sanity checks
Modified:
trunk/reactos/drivers/wdm/audio/legacy/stream/pnp.c
Modified: trunk/reactos/drivers/wdm/audio/legacy/stream/pnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/legacy/s…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/legacy/stream/pnp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/legacy/stream/pnp.c [iso-8859-1] Tue Aug 11 11:41:33
2009
@@ -156,6 +156,10 @@
/* Get driver object extension */
DriverObjectExtension = IoGetDriverObjectExtension(DeviceObject->DriverObject,
(PVOID)StreamClassAddDevice);
+
+ /* sanity checks */
+ ASSERT(DeviceExtension);
+ ASSERT(DriverObjectExtension);
/* Zero request block */
RtlZeroMemory(RequestBlock, ResultLength);