msscript.ocx: 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-26 10:23:14 +01:00
parent 3debf592ab
commit 8a74df6483
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@ RC_SRCS = msscript.rc
IDL_SRCS = msscript.idl IDL_SRCS = msscript.idl
IMPORTS = gdi32 user32 ole32 oleaut32 IMPORTS = gdi32 user32 ole32 oleaut32
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
msscript.c msscript.c

View File

@ -4013,8 +4013,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
TRACE("(%p %d %p)\n", instance, reason, reserved); TRACE("(%p %d %p)\n", instance, reason, reserved);
switch(reason) { switch(reason) {
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
msscript_instance = instance; msscript_instance = instance;
DisableThreadLibraryCalls(instance); DisableThreadLibraryCalls(instance);