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

This commit is contained in:
Michael Karcher 2008-05-20 09:23:00 +02:00 committed by Alexandre Julliard
parent 7361e91fdd
commit a2880cc61d
1 changed files with 1 additions and 1 deletions

View File

@ -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);