wlanapi: 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:40 +01:00
parent 60933c5b93
commit 8457f1376e
2 changed files with 1 additions and 17 deletions

View File

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

View File

@ -197,19 +197,3 @@ void *WINAPI WlanAllocateMemory(DWORD size)
return ret;
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *reserved)
{
TRACE("(0x%p, %u, %p)\n", hinstDLL, reason, reserved);
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
break;
}
return TRUE;
}