adsldp: Use --prefer_native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-02 10:53:33 +01:00
parent 3c2db20f66
commit 55ae768fdc
2 changed files with 1 additions and 4 deletions

View file

@ -2,7 +2,7 @@ MODULE = adsldp.dll
IMPORTS = ole32 oleaut32 secur32 activeds uuid
DELAYIMPORTS = netapi32 wldap32
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
adsldp.c \

View file

@ -2135,9 +2135,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
adsldp_hinst = hinst;
DisableThreadLibraryCalls(hinst);