vbscript: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fe17d149b0
commit
96be0cfaab
|
@ -1,7 +1,7 @@
|
||||||
MODULE = vbscript.dll
|
MODULE = vbscript.dll
|
||||||
IMPORTS = oleaut32 ole32 user32
|
IMPORTS = oleaut32 ole32 user32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
compile.c \
|
compile.c \
|
||||||
|
|
|
@ -272,8 +272,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID 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);
|
||||||
vbscript_hinstance = hInstDLL;
|
vbscript_hinstance = hInstDLL;
|
||||||
|
|
Loading…
Reference in New Issue