kernel32/tests: Fixed test for GetVolumeNameForVolumeMountPoint on directory.

This commit is contained in:
Austin Lund 2009-11-15 11:45:45 +10:00 committed by Alexandre Julliard
parent 9120e9baeb
commit f5271ce1e3
1 changed files with 4 additions and 1 deletions

View File

@ -155,8 +155,11 @@ static void test_GetVolumeNameForVolumeMountPointA(void)
GetLastError());
/* Try on a arbitrary directory */
/* On FAT filesystems it seems that GetLastError() is set to
ERROR_INVALID_FUNCTION. */
ret = pGetVolumeNameForVolumeMountPointA(temp_path, volume, len);
ok(ret == FALSE && GetLastError() == ERROR_NOT_A_REPARSE_POINT,
ok(ret == FALSE && (GetLastError() == ERROR_NOT_A_REPARSE_POINT ||
GetLastError() == ERROR_INVALID_FUNCTION),
"GetVolumeNameForVolumeMountPointA failed on %s, last=%d\n",
temp_path, GetLastError());