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

Alexandre Julliard julliard at winehq.org
Wed Feb 24 15:45:40 CST 2021


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Feb 24 10:28:41 2021 +0100

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

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

---

 dlls/schannel/Makefile.in     |  2 +-
 dlls/schannel/schannel_main.c | 12 ------------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/dlls/schannel/Makefile.in b/dlls/schannel/Makefile.in
index 492683a6b25..9eedfe02350 100644
--- a/dlls/schannel/Makefile.in
+++ b/dlls/schannel/Makefile.in
@@ -1,7 +1,7 @@
 MODULE    = schannel.dll
 IMPORTS   = secur32
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	lsamode.c \
diff --git a/dlls/schannel/schannel_main.c b/dlls/schannel/schannel_main.c
index 5f8b5691134..dad82c9efd2 100644
--- a/dlls/schannel/schannel_main.c
+++ b/dlls/schannel/schannel_main.c
@@ -27,18 +27,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(schannel);
 
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
-	TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved);
-
-	if (fdwReason == DLL_WINE_PREATTACH) return FALSE;	/* prefer native version */
-
-	if (fdwReason == DLL_PROCESS_ATTACH)
-		DisableThreadLibraryCalls(hinstDLL);
-
-	return TRUE;
-}
-
 BOOL WINAPI SslEmptyCacheA(LPSTR target, DWORD flags)
 {
     FIXME("%s %x\n", debugstr_a(target), flags);




More information about the wine-cvs mailing list