Module: wine Branch: master Commit: f5271ce1e3630954026d349fcf8a69435a1f6820 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f5271ce1e3630954026d349fcf...
Author: Austin Lund austin.lund@gmail.com Date: Sun Nov 15 11:45:45 2009 +1000
kernel32/tests: Fixed test for GetVolumeNameForVolumeMountPoint on directory.
---
dlls/kernel32/tests/volume.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c index f569247..efd74d5 100644 --- a/dlls/kernel32/tests/volume.c +++ b/dlls/kernel32/tests/volume.c @@ -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());