Commit 414ddfa6 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

urlmon: If we are using an internal protocol ClassFactory, call its AddRef as…

urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.
parent d01c697e
...@@ -151,6 +151,7 @@ HRESULT get_protocol_handler(LPCWSTR url, CLSID *clsid, IClassFactory **ret) ...@@ -151,6 +151,7 @@ HRESULT get_protocol_handler(LPCWSTR url, CLSID *clsid, IClassFactory **ret)
ns = find_name_space(schema); ns = find_name_space(schema);
if(ns) { if(ns) {
*ret = ns->cf; *ret = ns->cf;
IClassFactory_AddRef(*ret);
if(clsid) if(clsid)
*clsid = ns->clsid; *clsid = ns->clsid;
return S_OK; return S_OK;
......
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