Commit 0afbcd5d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Add ISAXAttributes_getIndexFromName implementation.

parent 5e1af9b9
......@@ -721,10 +721,29 @@ static HRESULT WINAPI isaxattributes_getIndexFromName(
int *index)
{
saxattributes *This = impl_from_ISAXAttributes( iface );
FIXME("(%p)->(%s, %d, %s, %d) stub\n", This, debugstr_w(pUri), cUriLength,
int i;
TRACE("(%p)->(%s, %d, %s, %d)\n", This, debugstr_w(pUri), cUriLength,
debugstr_w(pLocalName), cocalNameLength);
return E_NOTIMPL;
if(!pUri || !pLocalName || !index) return E_POINTER;
for(i=0; i<This->nb_attributes; i++)
{
if(cUriLength!=SysStringLen(This->szURI[i])
|| cocalNameLength!=SysStringLen(This->szLocalname[i]))
continue;
if(cUriLength && memcmp(pUri, This->szURI[i],
sizeof(WCHAR)*cUriLength))
continue;
if(cocalNameLength && memcmp(pLocalName, This->szLocalname[i],
sizeof(WCHAR)*cocalNameLength))
continue;
*index = i;
return S_OK;
}
return E_INVALIDARG;
}
static HRESULT WINAPI isaxattributes_getIndexFromQName(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment