Alexandre Julliard : authz: 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: 1c5a00d26592037d11b91fa15d537a0eb3cc3fbb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1c5a00d26592037d11b91fa15d537a0eb3cc3fbb

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

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

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

---

 dlls/authz/Makefile.in |  2 +-
 dlls/authz/authz.c     | 18 ------------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/dlls/authz/Makefile.in b/dlls/authz/Makefile.in
index 91a070485bb..33244b45b06 100644
--- a/dlls/authz/Makefile.in
+++ b/dlls/authz/Makefile.in
@@ -1,6 +1,6 @@
 MODULE    = authz.dll
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	authz.c
diff --git a/dlls/authz/authz.c b/dlls/authz/authz.c
index 72d462d3bb8..879207dd9b6 100644
--- a/dlls/authz/authz.c
+++ b/dlls/authz/authz.c
@@ -27,24 +27,6 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(authz);
 
-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;
-        default:
-            break;
-    }
-
-    return TRUE;
-}
-
 /***********************************************************************
  *              AuthzInitializeResourceManager (AUTHZ.@)
  */




More information about the wine-cvs mailing list