[ros-diffs] [cgutman] 52066: [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

cgutman at svn.reactos.org cgutman at svn.reactos.org
Thu Jun 2 18:23:31 UTC 2011


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.c?rev=52066&r1=52065&r2=52066&view=diff
==============================================================================
--- 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;
     }
     




More information about the Ros-diffs mailing list