Author: pschweitzer
Date: Sat Jan 3 11:31:22 2009
New Revision: 38536
URL:
http://svn.reactos.org/svn/reactos?rev=38536&view=rev
Log:
Call IoGetRelatedTargetDevice() where needed
Modified:
branches/pierre-fsd/ntoskrnl/io/iomgr/iofunc.c
Modified: branches/pierre-fsd/ntoskrnl/io/iomgr/iofunc.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/io/iomgr/io…
==============================================================================
--- branches/pierre-fsd/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original)
+++ branches/pierre-fsd/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Sat Jan 3 11:31:22 2009
@@ -3297,7 +3297,8 @@
}
/* Get the device object */
- DeviceObject = IoGetRelatedDeviceObject(FileObject);
+ Status = IoGetRelatedTargetDevice(FileObject, &DeviceObject);
+ if (!NT_SUCCESS(Status)) return Status;
/* Clear File Object event */
KeClearEvent(&FileObject->Event);