sfc_os: Use --prefer-native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-02-24 10:28:45 +01:00
parent 9fe9bb9111
commit 18bae5248a
2 changed files with 1 additions and 20 deletions

View File

@ -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

View File

@ -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.@]
*/