sys: FspSafeMdlCreate: testing

This commit is contained in:
Bill Zissimopoulos
2016-03-07 17:53:52 -08:00
parent 26b5d8a458
commit 9aca7e2e81
3 changed files with 17 additions and 13 deletions

View File

@ -34,8 +34,8 @@ void rdwr_noncached_dotest(ULONG Flags, PWSTR VolPrefix, PWSTR Prefix, ULONG Fil
Success = GetDiskFreeSpaceW(FilePath, &SectorsPerCluster, &BytesPerSector, &FreeClusters, &TotalClusters);
ASSERT(Success);
Buffer[0] = malloc(BytesPerSector);
Buffer[1] = malloc(BytesPerSector);
Buffer[0] = _aligned_malloc(BytesPerSector, BytesPerSector);
Buffer[1] = _aligned_malloc(BytesPerSector, BytesPerSector);
ASSERT(0 != Buffer[0] && 0 != Buffer[1]);
srand((unsigned)time(0));