oleaut32: Check that the 32/64 syskind matches when getting a typelib from the cache.

Fixes test failures on 64-bit.
This commit is contained in:
Alexandre Julliard 2022-09-09 17:27:27 +02:00
parent 524cc6339c
commit 43e5f9e4bf

View file

@ -7966,7 +7966,8 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
&& IsEqualIID(&entry->guid->guid, TLB_get_guid_null(ref_type->pImpTLInfo->guid))
&& entry->ver_major == ref_type->pImpTLInfo->wVersionMajor
&& entry->ver_minor == ref_type->pImpTLInfo->wVersionMinor
&& entry->set_lcid == ref_type->pImpTLInfo->lcid)
&& entry->set_lcid == ref_type->pImpTLInfo->lcid
&& entry->syskind == This->pTypeLib->syskind)
{
TRACE("got cached %p\n", entry);
pTLib = (ITypeLib*)&entry->ITypeLib2_iface;