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

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

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

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

---

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

diff --git a/dlls/prntvpt/Makefile.in b/dlls/prntvpt/Makefile.in
index 452faa4fbf5..09818bc7b74 100644
--- a/dlls/prntvpt/Makefile.in
+++ b/dlls/prntvpt/Makefile.in
@@ -2,7 +2,7 @@ MODULE    = prntvpt.dll
 IMPORTLIB = prntvpt
 IMPORTS   = winspool ole32 oleaut32
 
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
 
 C_SRCS = \
 	main.c \
diff --git a/dlls/prntvpt/main.c b/dlls/prntvpt/main.c
index 197fb54022c..d6ad0cff46a 100644
--- a/dlls/prntvpt/main.c
+++ b/dlls/prntvpt/main.c
@@ -43,21 +43,6 @@ static WCHAR *heap_strdupW(const WCHAR *src)
     return dst;
 }
 
-BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
-{
-    TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
-
-    switch(reason)
-    {
-        case DLL_WINE_PREATTACH:
-            return FALSE; /* prefer native version */
-        case DLL_PROCESS_ATTACH:
-            DisableThreadLibraryCalls(hinst);
-            break;
-    }
-    return TRUE;
-}
-
 HRESULT WINAPI PTReleaseMemory(PVOID mem)
 {
     heap_free(mem);




More information about the wine-cvs mailing list