urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.

This commit is contained in:
Misha Koshelev 2007-07-24 00:14:58 -05:00 committed by Alexandre Julliard
parent d01c697eb9
commit 414ddfa671

View file

@ -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;