wpc: Use --prefer_native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
005e641ec4
commit
cb26b60ae1
|
@ -1,6 +1,6 @@
|
||||||
MODULE = wpc.dll
|
MODULE = wpc.dll
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
wpc.c
|
wpc.c
|
||||||
|
|
|
@ -166,8 +166,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
|
||||||
TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
|
TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
|
||||||
|
|
||||||
switch(fdwReason) {
|
switch(fdwReason) {
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls(hInstDLL);
|
DisableThreadLibraryCalls(hInstDLL);
|
||||||
wpc_instance = hInstDLL;
|
wpc_instance = hInstDLL;
|
||||||
|
|
Loading…
Reference in New Issue