shell32/tests: Fix a test failure on Vista and higher.

This commit is contained in:
Paul Vriens 2009-06-18 10:45:44 +02:00 committed by Alexandre Julliard
parent 7319805621
commit cca3492557
1 changed files with 3 additions and 1 deletions

View File

@ -962,7 +962,9 @@ static void test_SHGetPathFromIDList(void)
wszPath[1] = '\0';
result = pSHGetPathFromIDListW(pidlMyComputer, wszPath);
ok (!result, "SHGetPathFromIDListW succeeded where it shouldn't!\n");
ok (GetLastError()==0xdeadbeef, "SHGetPathFromIDListW shouldn't set last error! Last error: %u\n", GetLastError());
ok (GetLastError()==0xdeadbeef ||
GetLastError()==ERROR_SUCCESS, /* Vista and higher */
"Unexpected last error from SHGetPathFromIDListW: %u\n", GetLastError());
ok (!wszPath[0], "Expected empty path\n");
if (result) {
IShellFolder_Release(psfDesktop);