urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.
This commit is contained in:
parent
d01c697eb9
commit
414ddfa671
|
@ -151,6 +151,7 @@ HRESULT get_protocol_handler(LPCWSTR url, CLSID *clsid, IClassFactory **ret)
|
|||
ns = find_name_space(schema);
|
||||
if(ns) {
|
||||
*ret = ns->cf;
|
||||
IClassFactory_AddRef(*ret);
|
||||
if(clsid)
|
||||
*clsid = ns->clsid;
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue