joy.cpl: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
735fc0e725
commit
ec9a3d9906
|
@ -1,7 +1,7 @@
|
||||||
MODULE = joy.cpl
|
MODULE = joy.cpl
|
||||||
IMPORTS = dxguid dinput dinput8 ole32 comctl32 user32 advapi32
|
IMPORTS = dxguid dinput dinput8 ole32 comctl32 user32 advapi32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
main.c
|
main.c
|
||||||
|
|
|
@ -47,9 +47,6 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
|
||||||
|
|
||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
|
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls(hdll);
|
DisableThreadLibraryCalls(hdll);
|
||||||
hcpl = hdll;
|
hcpl = hdll;
|
||||||
|
|
Loading…
Reference in New Issue