- Revert changes to NtSetVolumeInformationFile made in 38550, it should indeed use IoGetRelatedDeviceObject, not target device.

svn path=/trunk/; revision=38552
This commit is contained in:
Aleksey Bragin 2009-01-04 10:12:38 +00:00
parent 2882b5579f
commit f54bc7959a

View file

@ -3307,8 +3307,7 @@ NtSetVolumeInformationFile(IN HANDLE FileHandle,
}
/* Get the device object */
Status = IoGetRelatedTargetDevice(FileObject, &DeviceObject);
if (!NT_SUCCESS(Status)) return Status;
DeviceObject = IoGetRelatedDeviceObject(FileObject);
/* Clear File Object event */
KeClearEvent(&FileObject->Event);