From 0e3df155303c905a1fca243fad81e73c73eb0c32 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Feb 2021 10:28:23 +0100 Subject: [PATCH] query: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/query/Makefile.in | 2 +- dlls/query/query_main.c | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/dlls/query/Makefile.in b/dlls/query/Makefile.in index 075a645d508..d2c06c4a262 100644 --- a/dlls/query/Makefile.in +++ b/dlls/query/Makefile.in @@ -1,7 +1,7 @@ MODULE = query.dll IMPORTS = uuid -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ query_main.c diff --git a/dlls/query/query_main.c b/dlls/query/query_main.c index b93973addea..4312d483fc2 100644 --- a/dlls/query/query_main.c +++ b/dlls/query/query_main.c @@ -36,19 +36,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(query); -BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) -{ - switch(fdwReason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hInstDLL); - break; - } - return TRUE; -} - /*********************************************************************** * DllGetClassObject (QUERY.@) */