Commit 9abdf54c authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

oleaut32: Implement ITypeLibComp::BindType.

parent 0f84fd26
...@@ -4835,8 +4835,29 @@ static HRESULT WINAPI ITypeLibComp_fnBindType( ...@@ -4835,8 +4835,29 @@ static HRESULT WINAPI ITypeLibComp_fnBindType(
ITypeInfo ** ppTInfo, ITypeInfo ** ppTInfo,
ITypeComp ** ppTComp) ITypeComp ** ppTComp)
{ {
FIXME("(%s, %x, %p, %p): stub\n", debugstr_w(szName), lHash, ppTInfo, ppTComp); ITypeLibImpl *This = impl_from_ITypeComp(iface);
return E_NOTIMPL; 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 = static const ITypeCompVtbl tlbtcvt =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment