From 9cef8bb6f2131a2767d03cc8ef3742e10b7fe938 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Feb 2021 10:06:56 +0100 Subject: [PATCH] mspatcha: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/mspatcha/Makefile.in | 2 +- dlls/mspatcha/mspatcha_main.c | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/dlls/mspatcha/Makefile.in b/dlls/mspatcha/Makefile.in index a380f3f1a47..e262ce1af3c 100644 --- a/dlls/mspatcha/Makefile.in +++ b/dlls/mspatcha/Makefile.in @@ -1,7 +1,7 @@ MODULE = mspatcha.dll IMPORTLIB = mspatcha -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ lzxd_dec.c \ diff --git a/dlls/mspatcha/mspatcha_main.c b/dlls/mspatcha/mspatcha_main.c index 167c3fda9bb..c96cb01b549 100644 --- a/dlls/mspatcha/mspatcha_main.c +++ b/dlls/mspatcha/mspatcha_main.c @@ -41,24 +41,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mspatcha); -/***************************************************** - * DllMain (MSPATCHA.@) - */ -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; - } - - return TRUE; -} static WCHAR *strdupAW(const char *src) {