[ros-dev] [ros-diffs] [fireball] 38552: - Revert changes to NtSetVolumeInformationFile made in 38550, it should indeed use IoGetRelatedDeviceObject, not target device.
Alex Ionescu
ionucu at videotron.ca
Sun Jan 4 13:23:17 CET 2009
Yeah, sorry, the target device should be used to send a
TARGET_DEVICE_CUSTOM_NOTIFICAITON of type GUID_IO_VOLUME_CHANGE at the
end of the function (IoReportTargetDeviceChange).
FYI, Pierre, when you implement the notification system.
On 4-Jan-09, at 5:12 AM, fireball at svn.reactos.org wrote:
> Author: fireball
> Date: Sun Jan 4 04:12:38 2009
> New Revision: 38552
>
> URL: http://svn.reactos.org/svn/reactos?rev=38552&view=rev
> Log:
> - Revert changes to NtSetVolumeInformationFile made in 38550, it
> should indeed use IoGetRelatedDeviceObject, not target device.
>
> Modified:
> trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
>
> Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c?rev=38552&r1=38551&r2=38552&view=diff
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original)
> +++ trunk/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Sun Jan 4
> 04:12:38 2009
> @@ -3307,8 +3307,7 @@
> }
>
> /* Get the device object */
> - Status = IoGetRelatedTargetDevice(FileObject, &DeviceObject);
> - if (!NT_SUCCESS(Status)) return Status;
> + DeviceObject = IoGetRelatedDeviceObject(FileObject);
>
> /* Clear File Object event */
> KeClearEvent(&FileObject->Event);
>
Best regards,
Alex Ionescu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-dev/attachments/20090104/9adb45e9/attachment.html
More information about the Ros-dev
mailing list