oleaut32: Make ITypeInfo::GetDocumentation work for functions/variables in inherited interfaces.
This commit is contained in:
parent
1a2aa7ca3d
commit
65ca6a2f4d
|
@ -5579,6 +5579,23 @@ static HRESULT WINAPI ITypeInfo_fnGetDocumentation( ITypeInfo2 *iface,
|
|||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
if(This->TypeAttr.cImplTypes &&
|
||||
(This->TypeAttr.typekind==TKIND_INTERFACE || This->TypeAttr.typekind==TKIND_DISPATCH)) {
|
||||
/* recursive search */
|
||||
ITypeInfo *pTInfo;
|
||||
HRESULT result;
|
||||
result = ITypeInfo_GetRefTypeInfo(iface, This->impltypelist->hRef,
|
||||
&pTInfo);
|
||||
if(SUCCEEDED(result)) {
|
||||
result = ITypeInfo_GetDocumentation(pTInfo, memid, pBstrName,
|
||||
pBstrDocString, pdwHelpContext, pBstrHelpFile);
|
||||
ITypeInfo_Release(pTInfo);
|
||||
return result;
|
||||
}
|
||||
WARN("Could not search inherited interface!\n");
|
||||
}
|
||||
|
||||
WARN("member %ld not found\n", memid);
|
||||
return TYPE_E_ELEMENTNOTFOUND;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue