Alexandre Julliard : vbscript: Use --prefer-native instead of DLL_WINE_PREATTACH.

Alexandre Julliard julliard at winehq.org
Fri Feb 26 14:39:28 CST 2021


Module: wine
Branch: master
Commit: 96be0cfaabadfc521f00049d1d0ed3328789a88d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=96be0cfaabadfc521f00049d1d0ed3328789a88d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb 26 10:24:12 2021 +0100

vbscript: Use --prefer-native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/vbscript/Makefile.in     | 2 +-
 dlls/vbscript/vbscript_main.c | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/vbscript/Makefile.in b/dlls/vbscript/Makefile.in
index 50c464f11ae..c889b62b90e 100644
--- a/dlls/vbscript/Makefile.in
+++ b/dlls/vbscript/Makefile.in
@@ -1,7 +1,7 @@
 MODULE    = vbscript.dll
 IMPORTS   = oleaut32 ole32 user32
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	compile.c \
diff --git a/dlls/vbscript/vbscript_main.c b/dlls/vbscript/vbscript_main.c
index 6dbf56d29a7..6143c5c1f1f 100644
--- a/dlls/vbscript/vbscript_main.c
+++ b/dlls/vbscript/vbscript_main.c
@@ -272,8 +272,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
 
     switch(fdwReason)
     {
-    case DLL_WINE_PREATTACH:
-        return FALSE;  /* prefer native version */
     case DLL_PROCESS_ATTACH:
         DisableThreadLibraryCalls(hInstDLL);
         vbscript_hinstance = hInstDLL;




More information about the wine-cvs mailing list