Piotr Caban : msxml3: Add implementation of ISAXAttributes_getURI.

Alexandre Julliard julliard at winehq.org
Mon Aug 4 08:53:42 CDT 2008


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

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Sun Aug  3 14:37:52 2008 +0200

msxml3: Add implementation of ISAXAttributes_getURI.

---

 dlls/msxml3/saxreader.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index b4e25f2..0cdd0c1 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -612,9 +612,15 @@ static HRESULT WINAPI isaxattributes_getURI(
         int *pUriSize)
 {
     saxattributes *This = impl_from_ISAXAttributes( iface );
+    TRACE("(%p)->(%d)\n", This, nIndex);
 
-    FIXME("(%p)->(%d) stub\n", This, nIndex);
-    return E_NOTIMPL;
+    if(nIndex>=This->nb_attributes || nIndex<0) return E_INVALIDARG;
+    if(!pUrl || !pUriSize) return E_POINTER;
+
+    *pUriSize = SysStringLen(This->szURI[nIndex]);
+    *pUrl = This->szURI[nIndex];
+
+    return S_OK;
 }
 
 static HRESULT WINAPI isaxattributes_getLocalName(




More information about the wine-cvs mailing list