From 5a288c9f9045e5366e05d1d86fec70b2fd09cc8d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 8 Mar 2012 23:02:45 +0000 Subject: [PATCH] [NTOSKRNL] - Add an assertion to catch a bug in the I/O manager svn path=/trunk/; revision=56093 --- reactos/ntoskrnl/io/iomgr/driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/ntoskrnl/io/iomgr/driver.c b/reactos/ntoskrnl/io/iomgr/driver.c index 889b17d63cd..306bf3ddf7d 100644 --- a/reactos/ntoskrnl/io/iomgr/driver.c +++ b/reactos/ntoskrnl/io/iomgr/driver.c @@ -60,6 +60,9 @@ IopDeleteDriver(IN PVOID ObjectBody) 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)-> ClientDriverExtension;