[ros-diffs] [pschweitzer] 38536: Call IoGetRelatedTargetDevice() where needed

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Sat Jan 3 18:31:23 CET 2009


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/iofunc.c?rev=38536&r1=38535&r2=38536&view=diff
==============================================================================
--- 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);



More information about the Ros-diffs mailing list