[driver] fixing volume label length
This commit is contained in:
parent
ec461ad428
commit
8153733a77
1 changed files with 3 additions and 2 deletions
|
|
@ -3344,7 +3344,7 @@ NTSTATUS nfs41_QueryVolumeInformation (
|
|||
case FileFsVolumeInformation:
|
||||
{
|
||||
PFILE_FS_VOLUME_INFORMATION pVolInfo = RxContext->Info.Buffer;
|
||||
DECLARE_CONST_UNICODE_STRING(Label, L"PnfsLabel");
|
||||
DECLARE_CONST_UNICODE_STRING(Label, L"PnfsVolume");
|
||||
|
||||
SizeUsed = sizeof(FILE_FS_VOLUME_INFORMATION) + Label.Length;
|
||||
if (RemainingLength < SizeUsed) {
|
||||
|
|
@ -3361,6 +3361,7 @@ NTSTATUS nfs41_QueryVolumeInformation (
|
|||
pVolInfo->VolumeCreationTime.QuadPart = 0;
|
||||
pVolInfo->VolumeSerialNumber = 0xBABAFACE;
|
||||
pVolInfo->SupportsObjects = FALSE;
|
||||
pVolInfo->VolumeLabelLength = Label.Length;
|
||||
RtlCopyMemory(&pVolInfo->VolumeLabel[0], (PVOID)Label.Buffer, Label.Length);
|
||||
RxContext->Info.LengthRemaining -= SizeUsed;
|
||||
status = STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue