Author: cgutman
Date: Thu Jun 2 18:23:30 2011
New Revision: 52066
URL:
http://svn.reactos.org/svn/reactos?rev=52066&view=rev
Log:
[NTOSKRNL]
- Fix a bug in device removal which resulted in an IRP_MN_CANCEL_REMOVE_DEVICE request not
being sent if the initial IRP_MN_QUERY_REMOVE_DEVICE failed
Modified:
trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Thu Jun 2 18:23:30 2011
@@ -4153,6 +4153,8 @@
{
DPRINT1("Removal vetoed by failing the query remove request\n");
+ IopCancelRemoveDevice(DeviceObject);
+
return STATUS_UNSUCCESSFUL;
}