Dmitry Timoshkov : msxml3: Use interface instead of implementation pointer to forward IEnumVARIANT:: AddRef and IEnumVARIANT::Release for IXMLElementCollection.

Alexandre Julliard julliard at winehq.org
Wed Feb 5 13:18:54 CST 2014


Module: wine
Branch: master
Commit: 9e9d3b22369596ace69f0b91c8654b8871a4b8a2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9e9d3b22369596ace69f0b91c8654b8871a4b8a2

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Jan 31 15:18:42 2014 +0900

msxml3: Use interface instead of implementation pointer to forward IEnumVARIANT::AddRef and IEnumVARIANT::Release for IXMLElementCollection.

---

 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 f188ca1..52eef62 100644
--- a/dlls/msxml3/xmlelem.c
+++ b/dlls/msxml3/xmlelem.c
@@ -738,14 +738,14 @@ static ULONG WINAPI xmlelem_collection_IEnumVARIANT_AddRef(
     IEnumVARIANT *iface)
 {
     xmlelem_collection *this = impl_from_IEnumVARIANT(iface);
-    return IXMLDocument_AddRef((IXMLDocument *)this);
+    return IXMLElementCollection_AddRef(&this->IXMLElementCollection_iface);
 }
 
 static ULONG WINAPI xmlelem_collection_IEnumVARIANT_Release(
     IEnumVARIANT *iface)
 {
     xmlelem_collection *this = impl_from_IEnumVARIANT(iface);
-    return IXMLDocument_Release((IXMLDocument *)this);
+    return IXMLElementCollection_Release(&this->IXMLElementCollection_iface);
 }
 
 static HRESULT WINAPI xmlelem_collection_IEnumVARIANT_Next(




More information about the wine-cvs mailing list