mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 16:53:38 +00:00
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 a new issue