Piotr Caban : msxml3: Add ISAXAttributes_getName implementation.
Alexandre Julliard
julliard at winehq.org
Thu Aug 21 10:02:31 CDT 2008
Module: wine
Branch: master
Commit: 5e1af9b9653aa579052d02e18ac8fd3c87721b0d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e1af9b9653aa579052d02e18ac8fd3c87721b0d
Author: Piotr Caban <piotr.caban at gmail.com>
Date: Wed Aug 20 18:30:16 2008 +0200
msxml3: Add ISAXAttributes_getName implementation.
---
dlls/msxml3/saxreader.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 55d4d56..d850c05 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -696,9 +696,20 @@ static HRESULT WINAPI isaxattributes_getName(
int *pQNameLength)
{
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(!pUri || !pUriLength || !pLocalName || !pLocalNameSize
+ || !pQName || !pQNameLength) return E_POINTER;
+
+ *pUriLength = SysStringLen(This->szURI[nIndex]);
+ *pUri = This->szURI[nIndex];
+ *pLocalNameSize = SysStringLen(This->szLocalname[nIndex]);
+ *pLocalName = This->szLocalname[nIndex];
+ *pQNameLength = SysStringLen(This->szQName[nIndex]);
+ *pQName = This->szQName[nIndex];
+
+ return S_OK;
}
static HRESULT WINAPI isaxattributes_getIndexFromName(
More information about the wine-cvs
mailing list