From 18bae5248a7ef9a43715dc055af3403a3fccf5d3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Feb 2021 10:28:45 +0100 Subject: [PATCH] sfc_os: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/sfc_os/Makefile.in | 2 +- dlls/sfc_os/sfc_os.c | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/dlls/sfc_os/Makefile.in b/dlls/sfc_os/Makefile.in index 1329b2e7967..561b49911b3 100644 --- a/dlls/sfc_os/Makefile.in +++ b/dlls/sfc_os/Makefile.in @@ -1,6 +1,6 @@ MODULE = sfc_os.dll IMPORTLIB = sfc_os -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = sfc_os.c diff --git a/dlls/sfc_os/sfc_os.c b/dlls/sfc_os/sfc_os.c index 6193dda43ef..f6163f5b4eb 100644 --- a/dlls/sfc_os/sfc_os.c +++ b/dlls/sfc_os/sfc_os.c @@ -30,25 +30,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(sfc); -/****************************************************************** - * DllMain - */ -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - TRACE("(%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; -} - /****************************************************************** * SfcGetNextProtectedFile [sfc_os.@] */