Skip tests without error if psapi.dll could not be loaded.
This commit is contained in:
parent
60acd897b4
commit
204ec74044
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue