Module: wine Branch: master Commit: fa221f56a3cb3fcc17252e7c0c95de5c1b640a09 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa221f56a3cb3fcc17252e7c0c...
Author: Piotr Caban piotr.caban@gmail.com Date: Wed Aug 20 18:30:58 2008 +0200
msxml3: Add ISAXAttributes_getIndexFromQName implementation.
---
dlls/msxml3/saxreader.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c index a9a37da..2a9f628 100644 --- a/dlls/msxml3/saxreader.c +++ b/dlls/msxml3/saxreader.c @@ -753,9 +753,22 @@ static HRESULT WINAPI isaxattributes_getIndexFromQName( int *index) { saxattributes *This = impl_from_ISAXAttributes( iface ); + int i; + TRACE("(%p)->(%s, %d)\n", This, debugstr_w(pQName), nQNameLength);
- FIXME("(%p)->(%s, %d) stub\n", This, debugstr_w(pQName), nQNameLength); - return E_NOTIMPL; + if(!pQName || !index) return E_POINTER; + if(!nQNameLength) return E_INVALIDARG; + + for(i=0; i<This->nb_attributes; i++) + { + if(nQNameLength!=SysStringLen(This->szQName[i])) continue; + if(memcmp(pQName, This->szQName, sizeof(WCHAR)*nQNameLength)) continue; + + *index = i; + return S_OK; + } + + return E_INVALIDARG; }
static HRESULT WINAPI isaxattributes_getType(