oleaut32: Also search local typeinfos in ITypeInfo::GetRefTypeInfo.

This commit is contained in:
Andrew Eikum 2013-05-16 09:30:38 -05:00 committed by Alexandre Julliard
parent c74a9eac93
commit 70ed25fa1a
1 changed files with 13 additions and 0 deletions

View File

@ -7089,6 +7089,19 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
result = ITypeInfoImpl_GetDispatchRefTypeInfo((ITypeInfo *)iface, &href_dispatch, ppTInfo);
} else {
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)
{
if(ref_type->reference == hRefType)