From f184a271ca0b4dd2033e46da7d2f1e08e7e64621 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 7 Mar 2012 00:14:13 +0000 Subject: [PATCH] [NTOSKRNL] - Hack IopDeleteDriver to workaround the boot driver unloading bugs I mailed ros-dev about - Should fix KVM testbot svn path=/trunk/; revision=56071 --- reactos/ntoskrnl/io/iomgr/driver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/ntoskrnl/io/iomgr/driver.c b/reactos/ntoskrnl/io/iomgr/driver.c index a500c3a73b5..889b17d63cd 100644 --- a/reactos/ntoskrnl/io/iomgr/driver.c +++ b/reactos/ntoskrnl/io/iomgr/driver.c @@ -73,12 +73,16 @@ IopDeleteDriver(IN PVOID ObjectBody) DriverExtension = NextDriverExtension; } +#if 0 /* Check if the driver image is still loaded */ if (DriverObject->DriverSection) { /* Unload it */ MmUnloadSystemImage(DriverObject->DriverSection); } +#else + DPRINT1("HACK: Not unloading the driver image due to critical bugs!\n"); +#endif /* Check if it has a name */ if (DriverObject->DriverName.Buffer)