mprapi: 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-23 10:06:40 +01:00
parent 986c0a8cbb
commit 9981715809
2 changed files with 1 additions and 20 deletions

View File

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

View File

@ -25,25 +25,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(mprapi); WINE_DEFAULT_DEBUG_CHANNEL(mprapi);
/*****************************************************
* DllMain
*/
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
{
TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
switch(reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hinst );
break;
}
return TRUE;
}
/*********************************************************************** /***********************************************************************
* MprAdminGetErrorString (MPRAPI.@) * MprAdminGetErrorString (MPRAPI.@)
* *