Commit f6197e74 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

jscript: Implement ScriptTypeInfo_GetRefTypeInfo.

parent 2990bc35
......@@ -983,10 +983,23 @@ static HRESULT WINAPI ScriptTypeInfo_GetDllEntry(ITypeInfo *iface, MEMBERID memi
static HRESULT WINAPI ScriptTypeInfo_GetRefTypeInfo(ITypeInfo *iface, HREFTYPE hRefType, ITypeInfo **ppTInfo)
{
ScriptTypeInfo *This = ScriptTypeInfo_from_ITypeInfo(iface);
HRESULT hr;
FIXME("(%p)->(%x %p)\n", This, hRefType, ppTInfo);
TRACE("(%p)->(%x %p)\n", This, hRefType, ppTInfo);
return E_NOTIMPL;
if (!ppTInfo || (INT)hRefType < 0) return E_INVALIDARG;
if (hRefType & ~3) return E_FAIL;
if (hRefType & 1)
{
hr = get_dispatch_typeinfo(ppTInfo);
if (FAILED(hr)) return hr;
}
else
*ppTInfo = iface;
ITypeInfo_AddRef(*ppTInfo);
return S_OK;
}
static HRESULT WINAPI ScriptTypeInfo_AddressOfMember(ITypeInfo *iface, MEMBERID memid, INVOKEKIND invKind, PVOID *ppv)
......
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