kernel32/tests: Fix some test failures on Vista.
This commit is contained in:
parent
bf353f180d
commit
7750e36be5
|
@ -129,9 +129,10 @@ static void test_GetVolumeNameForVolumeMountPointA(void)
|
||||||
ok(reti < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
ok(reti < MAX_PATH, "temp path should fit into MAX_PATH\n");
|
||||||
|
|
||||||
ret = pGetVolumeNameForVolumeMountPointA(path, volume, 0);
|
ret = pGetVolumeNameForVolumeMountPointA(path, volume, 0);
|
||||||
ok(ret == FALSE && GetLastError() == ERROR_FILENAME_EXCED_RANGE,
|
ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n");
|
||||||
"GetVolumeNameForVolumeMountPointA succeeded or wrong error, last=%d\n",
|
ok(GetLastError() == ERROR_FILENAME_EXCED_RANGE ||
|
||||||
GetLastError());
|
GetLastError() == ERROR_INVALID_PARAMETER, /* Vista */
|
||||||
|
"wrong error, last=%d\n", GetLastError());
|
||||||
|
|
||||||
if (0) { /* these crash on XP */
|
if (0) { /* these crash on XP */
|
||||||
ret = pGetVolumeNameForVolumeMountPointA(path, NULL, len);
|
ret = pGetVolumeNameForVolumeMountPointA(path, NULL, len);
|
||||||
|
@ -195,9 +196,10 @@ static void test_GetVolumeNameForVolumeMountPointW(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = pGetVolumeNameForVolumeMountPointW(path, volume, 0);
|
ret = pGetVolumeNameForVolumeMountPointW(path, volume, 0);
|
||||||
ok(ret == FALSE && GetLastError() == ERROR_FILENAME_EXCED_RANGE,
|
ok(ret == FALSE, "GetVolumeNameForVolumeMountPointA succeeded\n");
|
||||||
"GetVolumeNameForVolumeMountPointA succeeded or wrong error, last=%d\n",
|
ok(GetLastError() == ERROR_FILENAME_EXCED_RANGE ||
|
||||||
GetLastError());
|
GetLastError() == ERROR_INVALID_PARAMETER, /* Vista */
|
||||||
|
"wrong error, last=%d\n", GetLastError());
|
||||||
|
|
||||||
if (0) { /* these crash on XP */
|
if (0) { /* these crash on XP */
|
||||||
ret = pGetVolumeNameForVolumeMountPointW(path, NULL, len);
|
ret = pGetVolumeNameForVolumeMountPointW(path, NULL, len);
|
||||||
|
|
Loading…
Reference in New Issue