ntdsapi: 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:01 +01:00
parent 629d4fce0f
commit 9f9d1e6675
2 changed files with 1 additions and 20 deletions

View File

@ -2,7 +2,7 @@ MODULE = ntdsapi.dll
IMPORTLIB = ntdsapi
IMPORTS = user32
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
ntdsapi.c

View File

@ -27,25 +27,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(ntdsapi);
/*****************************************************
* 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;
}
/***********************************************************************
* DsBindA (NTDSAPI.@)
*/