From fa222a9bdd501e8b7774f2fcd4b3c4f59c95b77f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 18 Mar 2012 22:28:14 +0000 Subject: [PATCH] [NTOSKRNL] - Forgot this dereference - Unloading works now, but there are many bugs in the device stacks that prevent it from occurring - Usbhub will unload properly when a hub is removed for a driver update, but usbstor won't unload when all usb storage devices have been removed - Work needs to be done to fix issues like this svn path=/trunk/; revision=56185 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index fc3eae50299..4f52e539858 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -2610,7 +2610,7 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode, Status = PipCallDriverAddDevice(DeviceNode, FALSE, DriverObject); /* Remove the extra reference */ - //ObDereferenceObject(DriverObject); + ObDereferenceObject(DriverObject); } else {