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

Alexandre Julliard julliard at winehq.org
Tue Feb 23 15:54:47 CST 2021


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Feb 23 10:07:04 2021 +0100

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

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

---

 dlls/mssip32/Makefile.in |  2 +-
 dlls/mssip32/main.c      | 15 ---------------
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/dlls/mssip32/Makefile.in b/dlls/mssip32/Makefile.in
index 665cbc915d8..02ba8071ef2 100644
--- a/dlls/mssip32/Makefile.in
+++ b/dlls/mssip32/Makefile.in
@@ -1,6 +1,6 @@
 MODULE    = mssip32.dll
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	main.c
diff --git a/dlls/mssip32/main.c b/dlls/mssip32/main.c
index abefdd0b1b2..a4d21b7cdd3 100644
--- a/dlls/mssip32/main.c
+++ b/dlls/mssip32/main.c
@@ -24,21 +24,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(mssip32);
 
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
-    TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
-
-    switch (fdwReason)
-    {
-        case DLL_WINE_PREATTACH:
-            return FALSE;    /* prefer native version */
-        case DLL_PROCESS_ATTACH:
-            DisableThreadLibraryCalls(hinstDLL);
-            break;
-    }
-    return TRUE;
-}
-
 /*****************************************************
  *    DllRegisterServer (MSSIP32.@)
  */




More information about the wine-cvs mailing list