From 987ca1f1ffd3874028c8dbe07e923338d0875159 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Feb 2021 10:06:21 +0100 Subject: [PATCH] loadperf: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/loadperf/Makefile.in | 2 +- dlls/loadperf/loadperf_main.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/dlls/loadperf/Makefile.in b/dlls/loadperf/Makefile.in index 9258ec06353..5ca8959ebd1 100644 --- a/dlls/loadperf/Makefile.in +++ b/dlls/loadperf/Makefile.in @@ -1,7 +1,7 @@ MODULE = loadperf.dll IMPORTLIB = loadperf -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ loadperf_main.c diff --git a/dlls/loadperf/loadperf_main.c b/dlls/loadperf/loadperf_main.c index 54901a739af..c58f46f4204 100644 --- a/dlls/loadperf/loadperf_main.c +++ b/dlls/loadperf/loadperf_main.c @@ -31,22 +31,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(loadperf); -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 *str) { WCHAR *ret = NULL;