From 43e5f9e4bfa65ccea633df244a7ec0c790ed8ffb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 9 Sep 2022 17:27:27 +0200 Subject: [PATCH] oleaut32: Check that the 32/64 syskind matches when getting a typelib from the cache. Fixes test failures on 64-bit. --- dlls/oleaut32/typelib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 7f10bcc968d..a7bbb273856 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -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;