Piotr Caban : msxml3: Added ISAXAttributes_getValue implementation.

Alexandre Julliard julliard at winehq.org
Thu Jul 31 07:18:02 CDT 2008


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

Author: Piotr Caban <piotr.caban at gmail.com>
Date:   Wed Jul 30 20:27:25 2008 +0200

msxml3: Added ISAXAttributes_getValue implementation.

---

 dlls/msxml3/saxreader.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index e57bf6c..5a64e2b 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -382,9 +382,14 @@ static HRESULT WINAPI isaxattributes_getValue(
         int *nValue)
 {
     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) return E_INVALIDARG;
+
+    *nValue = SysStringLen(This->szValue[nIndex]);
+    *pValue = This->szValue[nIndex];
+
+    return S_OK;
 }
 
 static HRESULT WINAPI isaxattributes_getValueFromName(
@@ -544,8 +549,6 @@ static void libxmlStartElementNS(
     HRESULT hr;
     saxattributes *attr;
 
-    FIXME("Arguments processing not yet implemented.\n");
-
     update_position(This, (xmlChar*)This->pParserCtxt->input->cur+1);
 
     if(This->saxreader->contentHandler)




More information about the wine-cvs mailing list