scrobj: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
50edd41014
commit
56700c5387
|
@ -1,7 +1,7 @@
|
||||||
MODULE = scrobj.dll
|
MODULE = scrobj.dll
|
||||||
IMPORTS = uuid urlmon ole32 oleaut32 xmllite advapi32
|
IMPORTS = uuid urlmon ole32 oleaut32 xmllite advapi32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
scrobj.c
|
scrobj.c
|
||||||
|
|
|
@ -2360,8 +2360,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved)
|
||||||
|
|
||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls(hinst);
|
DisableThreadLibraryCalls(hinst);
|
||||||
scrobj_instance = hinst;
|
scrobj_instance = hinst;
|
||||||
|
|
Loading…
Reference in New Issue