@@ -48,7 +48,7 @@ TestVolumeInfo(
48
48
ok_eq_ulong (VolumeInfo .VolumeLabelLength , 18 );
49
49
ok_eq_size (RtlCompareMemory (VolumeInfo .VolumeLabel , L"NamedPipe" , 18 ), 18 );
50
50
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 )) );
52
52
53
53
RtlFillMemory (& VolumeInfo , sizeof (VolumeInfo ), 0xFF );
54
54
Status = ZwQueryVolumeInformationFile (ServerHandle ,
@@ -65,7 +65,7 @@ TestVolumeInfo(
65
65
ok_eq_ulong (VolumeInfo .VolumeLabelLength , 18 );
66
66
ok_eq_size (RtlCompareMemory (VolumeInfo .VolumeLabel , L"NamedP" , 10 ), 10 );
67
67
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 )) );
69
69
70
70
RtlFillMemory (& FileFsSizeInfo , sizeof (FileFsSizeInfo ), 0xFF );
71
71
Status = ZwQueryVolumeInformationFile (ServerHandle ,
0 commit comments