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?... ============================================================================== --- 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;