msxml3: Don't return implementation pointer as an interface.

This commit is contained in:
Dmitry Timoshkov 2014-01-31 15:18:02 +09:00 committed by Alexandre Julliard
parent 41d34aa69b
commit de3ec1c55c
1 changed files with 2 additions and 2 deletions

View File

@ -663,8 +663,8 @@ static HRESULT WINAPI xmlelem_collection_get__newEnum(IXMLElementCollection *ifa
if (!ppUnk)
return E_INVALIDARG;
*ppUnk = (IUnknown *)This;
IUnknown_AddRef(*ppUnk);
IXMLElementCollection_AddRef(iface);
*ppUnk = (IUnknown *)&This->IEnumVARIANT_iface;
return S_OK;
}