From e925b40d1731678cd9954be0cf2f4d59cc7a2ff7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 Feb 2021 10:24:16 +0100 Subject: [PATCH] wmiutils: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/wmiutils/Makefile.in | 2 +- dlls/wmiutils/main.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/wmiutils/Makefile.in b/dlls/wmiutils/Makefile.in index 0d0cadd0e3b..85bdd697ccd 100644 --- a/dlls/wmiutils/Makefile.in +++ b/dlls/wmiutils/Makefile.in @@ -1,7 +1,7 @@ MODULE = wmiutils.dll IMPORTS = oleaut32 ole32 advapi32 -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ main.c \ diff --git a/dlls/wmiutils/main.c b/dlls/wmiutils/main.c index 9befe016bd4..c12b63256f8 100644 --- a/dlls/wmiutils/main.c +++ b/dlls/wmiutils/main.c @@ -117,8 +117,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) { switch(reason) { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ case DLL_PROCESS_ATTACH: instance = hinst; DisableThreadLibraryCalls( hinst );