oleaut32: Don't prevent 64-bit from loading 32-bit typelibs.
This commit is contained in:
parent
2a5a8bc4a3
commit
f1398510df
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue