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

Alexandre Julliard julliard at winehq.org
Thu Aug 15 13:12:46 CDT 2013


Module: wine
Branch: master
Commit: f1398510df7687d36006714b14295833100f8bf5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f1398510df7687d36006714b14295833100f8bf5

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Mon Aug 12 15:24:02 2013 -0500

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

---

 dlls/oleaut32/typelib.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 100c539..d8e9840 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -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 );




More information about the wine-cvs mailing list