mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[MOUNTMGR] Fix the buffer returned by IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATH (#6990)
The buffer returned by MountMgrQueryDosVolumePath() should be a multi-string containing one single string.
This commit is contained in:
parent
8bb7cd286b
commit
c306a27941
1 changed files with 2 additions and 2 deletions
|
@ -1004,8 +1004,8 @@ TryWithVolumeName:
|
||||||
Output = (PMOUNTMGR_VOLUME_PATHS)Irp->AssociatedIrp.SystemBuffer;
|
Output = (PMOUNTMGR_VOLUME_PATHS)Irp->AssociatedIrp.SystemBuffer;
|
||||||
|
|
||||||
/* At least, we will return our length */
|
/* At least, we will return our length */
|
||||||
Output->MultiSzLength = DeviceLength;
|
Output->MultiSzLength = DeviceLength + 2 * sizeof(UNICODE_NULL);
|
||||||
Irp->IoStatus.Information = FIELD_OFFSET(MOUNTMGR_VOLUME_PATHS, MultiSz) + DeviceLength;
|
Irp->IoStatus.Information = FIELD_OFFSET(MOUNTMGR_VOLUME_PATHS, MultiSz) + Output->MultiSzLength;
|
||||||
|
|
||||||
/* If we have enough room for copying the string */
|
/* If we have enough room for copying the string */
|
||||||
if (Irp->IoStatus.Information <= Stack->Parameters.DeviceIoControl.OutputBufferLength)
|
if (Irp->IoStatus.Information <= Stack->Parameters.DeviceIoControl.OutputBufferLength)
|
||||||
|
|
Loading…
Reference in a new issue