sys: FspVolumeGetName: bug fix

This commit is contained in:
Bill Zissimopoulos 2016-01-13 16:35:36 -08:00
parent a1efce552e
commit ed5e95b863

View File

@ -476,7 +476,7 @@ NTSTATUS FspVolumeGetName(
RtlInitEmptyUnicodeString(&VolumeName, SystemBuffer, FSP_FSCTL_VOLUME_NAME_SIZEMAX);
RtlCopyUnicodeString(&VolumeName, &FsvolDeviceExtension->VolumeName);
VolumeName.Buffer[VolumeName.Length] = L'\0';
VolumeName.Buffer[VolumeName.Length / sizeof(WCHAR)] = L'\0';
Irp->IoStatus.Information = VolumeName.Length + sizeof(WCHAR);
return STATUS_SUCCESS;