mapi32/tests: Don't run tests if ScInitMapiUtil() fails.

This commit is contained in:
Paul Vriens 2009-06-19 12:30:40 +02:00 committed by Alexandre Julliard
parent 1e0b1e5487
commit 9a9c2ea268
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ START_TEST(imalloc)
FreeLibrary(hMapi32); FreeLibrary(hMapi32);
return; return;
} }
else if ((ret == E_FAIL) && (GetLastError() == ERROR_INVALID_HANDLE))
{
win_skip("ScInitMapiUtil doesn't work on some Win98 and WinME systems\n");
FreeLibrary(hMapi32);
return;
}
test_IMalloc(); test_IMalloc();