From b40a032e943d4f0bee4feeafcdb810652cf961ac Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 22 Feb 2021 09:24:12 +0100 Subject: [PATCH] clusapi: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/clusapi/Makefile.in | 2 +- dlls/clusapi/clusapi.c | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/dlls/clusapi/Makefile.in b/dlls/clusapi/Makefile.in index 2084e289aae..3d09512e630 100644 --- a/dlls/clusapi/Makefile.in +++ b/dlls/clusapi/Makefile.in @@ -1,7 +1,7 @@ MODULE = clusapi.dll IMPORTLIB = clusapi -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ clusapi.c diff --git a/dlls/clusapi/clusapi.c b/dlls/clusapi/clusapi.c index 88c6fbfc12b..b1dde6f0290 100644 --- a/dlls/clusapi/clusapi.c +++ b/dlls/clusapi/clusapi.c @@ -115,20 +115,3 @@ DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWST return ERROR_NO_MORE_ITEMS; } - -/*********************************************************************** - * DllMain (CLUSAPI.@) - * - */ -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - switch(fdwReason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls( hinstDLL ); - break; - } - return TRUE; -}