dpvoice: 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:54:07 +01:00
parent 79aa19c10d
commit 15da5be466
2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,7 @@
MODULE = dpvoice.dll MODULE = dpvoice.dll
IMPORTS = dxguid uuid IMPORTS = dxguid uuid
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
client.c \ client.c \

View File

@ -109,13 +109,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{ {
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
DPVOICE_hInstance = hinstDLL;
switch (fdwReason) switch (fdwReason)
{ {
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DPVOICE_hInstance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL); DisableThreadLibraryCalls(hinstDLL);
break; break;
default: default: