oleaut32: Don't prevent 64-bit from loading 32-bit typelibs.

This commit is contained in:
Andrew Eikum 2013-08-12 15:24:02 -05:00 committed by Alexandre Julliard
parent 2a5a8bc4a3
commit f1398510df
1 changed files with 2 additions and 4 deletions

View File

@ -548,10 +548,8 @@ HRESULT WINAPI RegisterTypeLib(
if (FAILED(ITypeLib_GetLibAttr(ptlib, &attr)))
return E_FAIL;
#ifdef _WIN64
if (attr->syskind != SYS_WIN64) return TYPE_E_BADMODULEKIND;
#else
if (attr->syskind != SYS_WIN32 && attr->syskind != SYS_WIN16) return TYPE_E_BADMODULEKIND;
#ifndef _WIN64
if (attr->syskind == SYS_WIN64) return TYPE_E_BADMODULEKIND;
#endif
get_typelib_key( &attr->guid, attr->wMajorVerNum, attr->wMinorVerNum, keyName );