winnls32: 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-25 08:59:32 +01:00
parent 5b01a18dd3
commit 9bfaaea8fa
2 changed files with 1 additions and 17 deletions

View File

@ -1,7 +1,7 @@
MODULE = winnls32.dll
IMPORTLIB = winnls32
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
winnls.c

View File

@ -22,22 +22,6 @@
#include "winbase.h"
#include "winnls32.h"
/***********************************************************************
* DllMain (WINNLS.@)
*/
BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
switch(reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( inst );
break;
}
return TRUE;
}
/***********************************************************************
* WINNLS32GetEnableStatus (WINNLS32.2)
*/