[ros-diffs] [mjmartin] 41273: - IoGetLowerDeviceObject: Return lower device object if pending flags are not set. Noticed by Johannes Anderwald.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Thu Jun 4 02:01:44 CEST 2009


Author: mjmartin
Date: Thu Jun  4 04:01:43 2009
New Revision: 41273

URL: http://svn.reactos.org/svn/reactos?rev=41273&view=rev
Log:
- IoGetLowerDeviceObject: Return lower device object if pending flags are not set. Noticed by Johannes Anderwald.

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/device.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/device.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/device.c?rev=41273&r1=41272&r2=41273&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/device.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/device.c [iso-8859-1] Thu Jun  4 04:01:43 2009
@@ -1200,10 +1200,10 @@
 
     /* Make sure it's not getting deleted */
     DeviceExtension = IoGetDevObjExtension(DeviceObject);
-    if (DeviceExtension->ExtensionFlags & (DOE_UNLOAD_PENDING |
+    if (!(DeviceExtension->ExtensionFlags & (DOE_UNLOAD_PENDING |
                                            DOE_DELETE_PENDING |
                                            DOE_REMOVE_PENDING |
-                                           DOE_REMOVE_PROCESSED))
+                                           DOE_REMOVE_PROCESSED)))
     {
         /* Get the Lower Device Object */
         LowerDeviceObject = DeviceExtension->AttachedTo;



More information about the Ros-diffs mailing list