From f9ca7b59a41b096da2b3a6a3d11419a0f2adf424 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 18 Feb 2021 11:53:07 +0100 Subject: [PATCH] sfc: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/sfc/Makefile.in | 4 +--- dlls/sfc/sfc_main.c | 54 -------------------------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 dlls/sfc/sfc_main.c diff --git a/dlls/sfc/Makefile.in b/dlls/sfc/Makefile.in index 942d801f3ed..3a557a4b6f2 100644 --- a/dlls/sfc/Makefile.in +++ b/dlls/sfc/Makefile.in @@ -2,6 +2,4 @@ MODULE = sfc.dll IMPORTLIB = sfc IMPORTS = sfc_os -EXTRADLLFLAGS = -mno-cygwin - -C_SRCS = sfc_main.c +EXTRADLLFLAGS = -Wb,--prefer-native diff --git a/dlls/sfc/sfc_main.c b/dlls/sfc/sfc_main.c deleted file mode 100644 index 58957c89371..00000000000 --- a/dlls/sfc/sfc_main.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Implementation of the System File Checker (Windows File Protection) - * - * Copyright 2006 Detlef Riekenberg - * - * This file contains only stubs to get the localspl.dll up and running - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - */ - -/* - * Moved to sfc_os.dll since XP - * - */ - -#include - -#include "windef.h" -#include "winbase.h" -#include "winerror.h" -#include "wine/debug.h" - -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; -}