msxml3: Add ISAXAttributes_getName implementation.

This commit is contained in:
Piotr Caban 2008-08-20 18:30:16 +02:00 committed by Alexandre Julliard
parent f3ab228ae7
commit 5e1af9b965
1 changed files with 13 additions and 2 deletions

View File

@ -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(