ole32: Don't release pUnk in OleCreate if CoCreateInstance failed.
This commit is contained in:
parent
31b02bbd1f
commit
b8035d2c70
|
@ -2399,7 +2399,7 @@ HRESULT WINAPI OleCreate(
|
|||
}
|
||||
}
|
||||
|
||||
if (FAILED(hres))
|
||||
if (FAILED(hres) && pUnk)
|
||||
{
|
||||
IUnknown_Release(pUnk);
|
||||
pUnk = NULL;
|
||||
|
|
Loading…
Reference in New Issue