Author: pschweitzer
Date: Sat Apr 12 21:12:26 2014
New Revision: 62723
URL:
http://svn.reactos.org/svn/reactos?rev=62723&view=rev
Log:
[KMTESTS:NPFS]
--MagicValues;
CORE-7451
Modified:
trunk/rostests/kmtests/npfs/NpfsVolumeInfo.c
Modified: trunk/rostests/kmtests/npfs/NpfsVolumeInfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/npfs/NpfsVolumeIn…
==============================================================================
--- trunk/rostests/kmtests/npfs/NpfsVolumeInfo.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/npfs/NpfsVolumeInfo.c [iso-8859-1] Sat Apr 12 21:12:26 2014
@@ -48,7 +48,7 @@
ok_eq_ulong(VolumeInfo.VolumeLabelLength, 18);
ok_eq_size(RtlCompareMemory(VolumeInfo.VolumeLabel, L"NamedPipe", 18),
18);
ok_eq_wchar(VolumeInfo.VolumeLabel[9], 0xFFFF);
- ok_eq_ulong(IoStatusBlock.Information, 36);
+ ok_eq_ulong(IoStatusBlock.Information, (FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION,
VolumeLabel) + 9 * sizeof(WCHAR)));
RtlFillMemory(&VolumeInfo, sizeof(VolumeInfo), 0xFF);
Status = ZwQueryVolumeInformationFile(ServerHandle,
@@ -65,7 +65,7 @@
ok_eq_ulong(VolumeInfo.VolumeLabelLength, 18);
ok_eq_size(RtlCompareMemory(VolumeInfo.VolumeLabel, L"NamedP", 10), 10);
ok_eq_wchar(VolumeInfo.VolumeLabel[5], 0xFFFF);
- ok_eq_ulong(IoStatusBlock.Information, 28);
+ ok_eq_ulong(IoStatusBlock.Information, (FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION,
VolumeLabel) + 5 * sizeof(WCHAR)));
RtlFillMemory(&FileFsSizeInfo, sizeof(FileFsSizeInfo), 0xFF);
Status = ZwQueryVolumeInformationFile(ServerHandle,