Nikolay Sivov : msxml3: Implement getLocalName() for IMXAttributes.
Alexandre Julliard
julliard at winehq.org
Tue Apr 24 13:14:41 CDT 2012
Module: wine
Branch: master
Commit: 3f5ec72fcf2113292e95d7227b1c7c6b88bee042
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f5ec72fcf2113292e95d7227b1c7c6b88bee042
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Apr 24 11:30:24 2012 +0400
msxml3: Implement getLocalName() for IMXAttributes.
---
dlls/msxml3/mxwriter.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c
index e4224ed..48d9f8d 100644
--- a/dlls/msxml3/mxwriter.c
+++ b/dlls/msxml3/mxwriter.c
@@ -1795,12 +1795,20 @@ static HRESULT WINAPI SAXAttributes_getURI(ISAXAttributes *iface, int nIndex, co
return E_NOTIMPL;
}
-static HRESULT WINAPI SAXAttributes_getLocalName(ISAXAttributes *iface, int nIndex, const WCHAR **localName,
- int *length)
+static HRESULT WINAPI SAXAttributes_getLocalName(ISAXAttributes *iface, int index, const WCHAR **name,
+ int *len)
{
mxattributes *This = impl_from_ISAXAttributes( iface );
- FIXME("(%p)->(%d %p %p): stub\n", This, nIndex, localName, length);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%d %p %p)\n", This, index, name, len);
+
+ if (index >= This->length || index < 0) return E_INVALIDARG;
+ if (!name || !len) return E_POINTER;
+
+ *len = SysStringLen(This->attr[index].local);
+ *name = This->attr[index].local;
+
+ return S_OK;
}
static HRESULT WINAPI SAXAttributes_getQName(ISAXAttributes *iface, int index, const WCHAR **qname, int *length)
More information about the wine-cvs
mailing list