From a861c78b9260cc29aabf3228ff26f299f2df7bdd Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 1 Sep 2008 01:24:23 +0200 Subject: [PATCH] jscript: Added IDispatchEx::GetIDsOfNames implementation. --- dlls/jscript/dispex.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c index 7dfa0d0b7fb..88a53a8a6ad 100644 --- a/dlls/jscript/dispex.c +++ b/dlls/jscript/dispex.c @@ -96,9 +96,19 @@ static HRESULT WINAPI DispatchEx_GetIDsOfNames(IDispatchEx *iface, REFIID riid, LCID lcid, DISPID *rgDispId) { DispatchEx *This = DISPATCHEX_THIS(iface); - FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames, + UINT i; + HRESULT hres; + + TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, rgDispId); - return E_NOTIMPL; + + for(i=0; i < cNames; i++) { + hres = IDispatchEx_GetDispID(_IDispatchEx_(This), rgszNames[i], 0, rgDispId+i); + if(FAILED(hres)) + return hres; + } + + return S_OK; } static HRESULT WINAPI DispatchEx_Invoke(IDispatchEx *iface, DISPID dispIdMember,