Commit 43e5f9e4 authored by Alexandre Julliard's avatar Alexandre Julliard

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

Fixes test failures on 64-bit.
parent 524cc633
......@@ -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;
......
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