From b4c45930591b6eb48c7016e9370358ae6850b142 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 22 Feb 2021 09:24:24 +0100 Subject: [PATCH] cryptext: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- 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.@) */