Skip to content

Commit 502ebc9

Browse files
committed
[KMTESTS:NPFS]
--MagicValues; CORE-7451 svn path=/trunk/; revision=62723
1 parent df69eed commit 502ebc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rostests/kmtests/npfs/NpfsVolumeInfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ TestVolumeInfo(
4848
ok_eq_ulong(VolumeInfo.VolumeLabelLength, 18);
4949
ok_eq_size(RtlCompareMemory(VolumeInfo.VolumeLabel, L"NamedPipe", 18), 18);
5050
ok_eq_wchar(VolumeInfo.VolumeLabel[9], 0xFFFF);
51-
ok_eq_ulong(IoStatusBlock.Information, 36);
51+
ok_eq_ulong(IoStatusBlock.Information, (FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION, VolumeLabel) + 9 * sizeof(WCHAR)));
5252

5353
RtlFillMemory(&VolumeInfo, sizeof(VolumeInfo), 0xFF);
5454
Status = ZwQueryVolumeInformationFile(ServerHandle,
@@ -65,7 +65,7 @@ TestVolumeInfo(
6565
ok_eq_ulong(VolumeInfo.VolumeLabelLength, 18);
6666
ok_eq_size(RtlCompareMemory(VolumeInfo.VolumeLabel, L"NamedP", 10), 10);
6767
ok_eq_wchar(VolumeInfo.VolumeLabel[5], 0xFFFF);
68-
ok_eq_ulong(IoStatusBlock.Information, 28);
68+
ok_eq_ulong(IoStatusBlock.Information, (FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION, VolumeLabel) + 5 * sizeof(WCHAR)));
6969

7070
RtlFillMemory(&FileFsSizeInfo, sizeof(FileFsSizeInfo), 0xFF);
7171
Status = ZwQueryVolumeInformationFile(ServerHandle,

0 commit comments

Comments
 (0)