[KMTEST_DRV]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 14 Oct 2013 16:35:35 +0000 (16:35 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 14 Oct 2013 16:35:35 +0000 (16:35 +0000)
* Move the DeviceExtension related asserts into a DBG block.

svn path=/trunk/; revision=60665

rostests/kmtests/kmtest_drv/kmtest_drv.c

index 37462a7..644e391 100644 (file)
@@ -150,9 +150,11 @@ DriverUnload(
 
     if (MainDeviceObject)
     {
+#if DBG
         PKMT_DEVICE_EXTENSION DeviceExtension = MainDeviceObject->DeviceExtension;
         ASSERT(!DeviceExtension->Mdl);
         ASSERT(!DeviceExtension->ResultBuffer);
+#endif
         ASSERT(!ResultBuffer);
         IoDeleteDevice(MainDeviceObject);
     }