mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[SHELL32]
- Fix reference leak in SHLoadInProc svn path=/trunk/; revision=68261
This commit is contained in:
parent
c46e00e0e7
commit
970ab0db9a
|
@ -1033,8 +1033,12 @@ HRESULT WINAPI SHLoadInProc (REFCLSID rclsid)
|
|||
TRACE("%s\n", debugstr_guid(rclsid));
|
||||
|
||||
CoCreateInstance(rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_IUnknown,&ptr);
|
||||
if (ptr)
|
||||
if(ptr)
|
||||
{
|
||||
IUnknown * pUnk = ptr;
|
||||
IUnknown_Release(pUnk);
|
||||
return S_OK;
|
||||
}
|
||||
return DISP_E_MEMBERNOTFOUND;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue