Skip tests without error if psapi.dll could not be loaded.

This commit is contained in:
Stefan Leichter 2004-06-28 20:29:36 +00:00 committed by Alexandre Julliard
parent 60acd897b4
commit 204ec74044
1 changed files with 4 additions and 2 deletions

View File

@ -136,8 +136,10 @@ static void test_module_base_name(void)
START_TEST(module) START_TEST(module)
{ {
dll = LoadLibrary("psapi.dll"); dll = LoadLibrary("psapi.dll");
ok(dll != 0, "LoadLibraryA failed\n"); if (!dll) {
if (!dll) return; trace("LoadLibraryA(psapi.dll) failed: skipping tests with target module\n");
return;
}
pGetModuleBaseNameA = (void*) GetProcAddress(dll, "GetModuleBaseNameA"); pGetModuleBaseNameA = (void*) GetProcAddress(dll, "GetModuleBaseNameA");