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

Alexandre Julliard julliard at winehq.org
Mon Feb 22 15:43:21 CST 2021


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Feb 22 09:24:24 2021 +0100

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

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

---

 dlls/cryptext/Makefile.in     |  2 +-
 dlls/cryptext/cryptext_main.c | 16 ----------------
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/dlls/cryptext/Makefile.in b/dlls/cryptext/Makefile.in
index 9c9f84cee87..3acce60ae88 100644
--- a/dlls/cryptext/Makefile.in
+++ b/dlls/cryptext/Makefile.in
@@ -1,6 +1,6 @@
 MODULE = cryptext.dll
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	cryptext_main.c
diff --git a/dlls/cryptext/cryptext_main.c b/dlls/cryptext/cryptext_main.c
index f7c7bd1f554..537ba66cd3b 100644
--- a/dlls/cryptext/cryptext_main.c
+++ b/dlls/cryptext/cryptext_main.c
@@ -26,22 +26,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(cryptext);
 
-BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
-{
-    TRACE("(%p, %u, %p)\n", instance, reason, reserved);
-
-    switch (reason)
-    {
-        case DLL_WINE_PREATTACH:
-            return FALSE;    /* prefer native version */
-        case DLL_PROCESS_ATTACH:
-            DisableThreadLibraryCalls(instance);
-            break;
-    }
-
-    return TRUE;
-}
-
 /***********************************************************************
  * CryptExtAddPFX (CRYPTEXT.@)
  */




More information about the wine-cvs mailing list