oleaut32: Implement ITypeLibComp::BindType.
This commit is contained in:
parent
0f84fd260a
commit
9abdf54cb7
|
@ -4835,8 +4835,29 @@ static HRESULT WINAPI ITypeLibComp_fnBindType(
|
|||
ITypeInfo ** ppTInfo,
|
||||
ITypeComp ** ppTComp)
|
||||
{
|
||||
FIXME("(%s, %x, %p, %p): stub\n", debugstr_w(szName), lHash, ppTInfo, ppTComp);
|
||||
return E_NOTIMPL;
|
||||
ITypeLibImpl *This = impl_from_ITypeComp(iface);
|
||||
ITypeInfoImpl *pTypeInfo;
|
||||
|
||||
TRACE("(%s, %x, %p, %p)\n", debugstr_w(szName), lHash, ppTInfo, ppTComp);
|
||||
|
||||
for (pTypeInfo = This->pTypeInfo; pTypeInfo; pTypeInfo = pTypeInfo->next)
|
||||
{
|
||||
/* FIXME: should use lHash to do the search */
|
||||
if (pTypeInfo->Name && !strcmpW(pTypeInfo->Name, szName))
|
||||
{
|
||||
TRACE("returning %p\n", pTypeInfo);
|
||||
*ppTInfo = (ITypeInfo *)&pTypeInfo->lpVtbl;
|
||||
ITypeInfo_AddRef(*ppTInfo);
|
||||
*ppTComp = (ITypeComp *)&pTypeInfo->lpVtblTypeComp;
|
||||
ITypeComp_AddRef(*ppTComp);
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
TRACE("not found\n");
|
||||
*ppTInfo = NULL;
|
||||
*ppTComp = NULL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static const ITypeCompVtbl tlbtcvt =
|
||||
|
|
Loading…
Reference in New Issue