Commit 6c83dd2d authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

oleaut32: Use correct interface pointer.

parent 47708c26
...@@ -7885,19 +7885,19 @@ static HRESULT WINAPI ITypeInfo_fnGetContainingTypeLib( ITypeInfo2 *iface, ...@@ -7885,19 +7885,19 @@ static HRESULT WINAPI ITypeInfo_fnGetContainingTypeLib( ITypeInfo2 *iface,
ITypeLib * *ppTLib, UINT *pIndex) ITypeLib * *ppTLib, UINT *pIndex)
{ {
ITypeInfoImpl *This = impl_from_ITypeInfo2(iface); ITypeInfoImpl *This = impl_from_ITypeInfo2(iface);
/* If a pointer is null, we simply ignore it, the ATL in particular passes pIndex as 0 */ /* If a pointer is null, we simply ignore it, the ATL in particular passes pIndex as 0 */
if (pIndex) { if (pIndex) {
*pIndex=This->index; *pIndex=This->index;
TRACE("returning pIndex=%d\n", *pIndex); TRACE("returning pIndex=%d\n", *pIndex);
} }
if (ppTLib) { if (ppTLib) {
*ppTLib=(LPTYPELIB )(This->pTypeLib); *ppTLib = (ITypeLib *)&This->pTypeLib->ITypeLib2_iface;
ITypeLib_AddRef(*ppTLib); ITypeLib_AddRef(*ppTLib);
TRACE("returning ppTLib=%p\n", *ppTLib); TRACE("returning ppTLib=%p\n", *ppTLib);
} }
return S_OK; return S_OK;
} }
......
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