shell32/tests: Skip some tests on Win95 because of W-functions.

This commit is contained in:
Paul Vriens 2009-03-04 21:55:11 +01:00 committed by Alexandre Julliard
parent b24e378f52
commit ebb6dd9c19
1 changed files with 11 additions and 2 deletions

View File

@ -853,7 +853,7 @@ static void test_SHGetPathFromIDList(void)
if(!pSHGetPathFromIDListW || !pSHGetSpecialFolderPathW)
{
skip("SHGetPathFromIDListW() or SHGetSpecialFolderPathW() is missing\n");
win_skip("SHGetPathFromIDListW() or SHGetSpecialFolderPathW() is missing\n");
return;
}
@ -869,6 +869,15 @@ static void test_SHGetPathFromIDList(void)
ok(result, "SHGetSpecialFolderPathW(CSIDL_DESKTOP) failed! Last error: %u\n", GetLastError());
if (!result) return;
/* Check if we are on Win9x */
SetLastError(0xdeadbeef);
lstrcmpiW(wszDesktop, wszDesktop);
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
win_skip("Most W-calls are not implemented\n");
return;
}
result = pSHGetPathFromIDListW(pidlEmpty, wszPath);
ok(result, "SHGetPathFromIDListW failed! Last error: %u\n", GetLastError());
if (!result) return;