Dmitry Timoshkov : msxml3: Don' t return implementation pointer as an interface.
Alexandre Julliard
julliard at winehq.org
Wed Feb 5 13:18:54 CST 2014
Module: wine
Branch: master
Commit: de3ec1c55c65de9811001094945debf5145daf38
URL: http://source.winehq.org/git/wine.git/?a=commit;h=de3ec1c55c65de9811001094945debf5145daf38
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Fri Jan 31 15:18:02 2014 +0900
msxml3: Don't return implementation pointer as an interface.
---
dlls/msxml3/xmlelem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/xmlelem.c b/dlls/msxml3/xmlelem.c
index 2130c713..cdb7805 100644
--- a/dlls/msxml3/xmlelem.c
+++ b/dlls/msxml3/xmlelem.c
@@ -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;
}
More information about the wine-cvs
mailing list