Commit dae64e67 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ole32/tests: Prevent a crash.

parent 84fd6e62
......@@ -944,7 +944,9 @@ static void test_CoFreeUnusedLibraries(void)
ok(is_module_loaded("urlmon.dll"), "urlmon.dll should be loaded\n");
IUnknown_Release(pUnk);
ok(pUnk != NULL, "Expected a valid pointer\n");
if (pUnk)
IUnknown_Release(pUnk);
ok(is_module_loaded("urlmon.dll"), "urlmon.dll should be loaded\n");
......
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