kernel: Fix a GetDiskFreeSpaceExA test for cd/dvd drives.

This commit is contained in:
Stefan Leichter 2006-02-10 14:52:40 +01:00 committed by Alexandre Julliard
parent c2fe85e658
commit ba3fb48657
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ static void test_GetDiskFreeSpaceA(void)
tot.QuadPart = sectors_per_cluster; tot.QuadPart = sectors_per_cluster;
tot.QuadPart = (tot.QuadPart * bytes_per_sector) * total_clusters; tot.QuadPart = (tot.QuadPart * bytes_per_sector) * total_clusters;
ret = pGetDiskFreeSpaceExA( drive, &d, &totEx, NULL); ret = pGetDiskFreeSpaceExA( drive, &d, &totEx, NULL);
ok( ret, "GetDiskFreeSpaceExA( %s ) failed. GetLastError=%ld\n", drive, GetLastError()); ok( ret || (!ret && ERROR_NOT_READY == GetLastError()),
"GetDiskFreeSpaceExA( %s ) failed. GetLastError=%ld\n", drive, GetLastError());
ok( bytes_per_sector == 0 || /* empty cd rom drive */ ok( bytes_per_sector == 0 || /* empty cd rom drive */
totEx.QuadPart <= tot.QuadPart, totEx.QuadPart <= tot.QuadPart,
"GetDiskFreeSpaceA should report at least as much bytes on disk %s as GetDiskFreeSpaceExA\n", drive); "GetDiskFreeSpaceA should report at least as much bytes on disk %s as GetDiskFreeSpaceExA\n", drive);