vbscript: Implement ScriptTypeInfo_GetRefTypeInfo.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8ce9855256
commit
3dc54aa79d
|
@ -884,10 +884,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)
|
||||
|
|
Loading…
Reference in New Issue