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

View File

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