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

oldstable
Misha Koshelev 2007-07-24 00:14:58 -05:00 committed by Alexandre Julliard
parent d01c697eb9
commit 414ddfa671
1 changed files with 1 additions and 0 deletions

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;