Commit 204ec740 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

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

parent 60acd897
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment