oleaut32: Also search local typeinfos in ITypeInfo::GetRefTypeInfo.
This commit is contained in:
parent
c74a9eac93
commit
70ed25fa1a
|
@ -7089,6 +7089,19 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
|
||||||
result = ITypeInfoImpl_GetDispatchRefTypeInfo((ITypeInfo *)iface, &href_dispatch, ppTInfo);
|
result = ITypeInfoImpl_GetDispatchRefTypeInfo((ITypeInfo *)iface, &href_dispatch, ppTInfo);
|
||||||
} else {
|
} else {
|
||||||
TLBRefType *ref_type;
|
TLBRefType *ref_type;
|
||||||
|
UINT i;
|
||||||
|
|
||||||
|
for(i = 0; i < This->pTypeLib->TypeInfoCount; ++i)
|
||||||
|
{
|
||||||
|
if (This->pTypeLib->typeinfos[i]->hreftype == hRefType)
|
||||||
|
{
|
||||||
|
result = S_OK;
|
||||||
|
*ppTInfo = (ITypeInfo*)This->pTypeLib->typeinfos[i];
|
||||||
|
ITypeInfo_AddRef(*ppTInfo);
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LIST_FOR_EACH_ENTRY(ref_type, &This->pTypeLib->ref_list, TLBRefType, entry)
|
LIST_FOR_EACH_ENTRY(ref_type, &This->pTypeLib->ref_list, TLBRefType, entry)
|
||||||
{
|
{
|
||||||
if(ref_type->reference == hRefType)
|
if(ref_type->reference == hRefType)
|
||||||
|
|
Loading…
Reference in New Issue