Commit a2880cc6 authored by Michael Karcher's avatar Michael Karcher Committed by Alexandre Julliard

ole32/tests: Do not call Release if CoCreateInstance failed.

parent 7361e91f
......@@ -208,7 +208,7 @@ static void test_CoCreateInstance(void)
OleInitialize(NULL);
hr = CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void **)&pUnk);
ok_ole_success(hr, "CoCreateInstance");
IUnknown_Release(pUnk);
if(pUnk) IUnknown_Release(pUnk);
OleUninitialize();
hr = CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void **)&pUnk);
......
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