wiaservc: Use --prefer_native instead of DLL_WINE_PREATTACH.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-03-02 10:56:43 +01:00
parent c64b6419c6
commit 005e641ec4
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
MODULE = wiaservc.dll MODULE = wiaservc.dll
IMPORTS = uuid ole32 advapi32 IMPORTS = uuid ole32 advapi32
EXTRADLLFLAGS = -mno-cygwin EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \ C_SRCS = \
factory.c \ factory.c \

View File

@ -47,8 +47,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
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);
hInst = hinstDLL; hInst = hinstDLL;