Author: cgutman
Date: Thu Mar  8 23:02:45 2012
New Revision: 56093

URL: http://svn.reactos.org/svn/reactos?rev=56093&view=rev
Log:
[NTOSKRNL]
- Add an assertion to catch a bug in the I/O manager

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/driver.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/driver.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/driver.c?rev=56093&r1=56092&r2=56093&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/driver.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/driver.c [iso-8859-1] Thu Mar  8 23:02:45 
2012
@@ -59,6 +59,9 @@
     PAGED_CODE();
 
     DPRINT1("Deleting driver object '%wZ'\n", &DriverObject->DriverName);
+
+    /* There must be no device objects remaining at this point */
+    ASSERT(!DriverObject->DeviceObject);
 
     /* Get the extension and loop them */
     DriverExtension = IoGetDrvObjExtension(DriverObject)->


Reply via email to