kernel32/tests: Fixed test for GetVolumeNameForVolumeMountPoint on directory.
This commit is contained in:
parent
9120e9baeb
commit
f5271ce1e3
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue