forked from Mirrors/wine-wine
oleaut32: Make ITypeInfo::GetDocumentation work for functions/variables in inherited interfaces.
parent
1a2aa7ca3d
commit
65ca6a2f4d
|
@ -5579,6 +5579,23 @@ static HRESULT WINAPI ITypeInfo_fnGetDocumentation( ITypeInfo2 *iface,
|
||||||
return S_OK;
|
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);
|
WARN("member %ld not found\n", memid);
|
||||||
return TYPE_E_ELEMENTNOTFOUND;
|
return TYPE_E_ELEMENTNOTFOUND;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue