kernel32/tests: Fix the FindFirstVolume test on Vista.

This commit is contained in:
Alexandre Julliard 2008-03-22 13:09:57 +01:00
parent 9879f78c13
commit c3ae7d1983
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ static void test_FindFirstVolume(void)
handle = pFindFirstVolumeA( volume, 0 );
ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );
ok( GetLastError() == ERROR_MORE_DATA || /* XP */
GetLastError() == ERROR_FILENAME_EXCED_RANGE, /* Vista */
"wrong error %u\n", GetLastError() );
handle = pFindFirstVolumeA( volume, 49 );
ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );