printui: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4394b4250b
commit
790ab8d24c
|
@ -1,7 +1,7 @@
|
||||||
MODULE = printui.dll
|
MODULE = printui.dll
|
||||||
IMPORTS = shell32
|
IMPORTS = shell32
|
||||||
|
|
||||||
EXTRADLLFLAGS = -mno-cygwin
|
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
printui.c
|
printui.c
|
||||||
|
|
|
@ -210,26 +210,6 @@ static BOOL parse_rundll(context_t * cx)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************
|
|
||||||
* DllMain
|
|
||||||
*/
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
||||||
{
|
|
||||||
TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved);
|
|
||||||
|
|
||||||
switch(fdwReason)
|
|
||||||
{
|
|
||||||
case DLL_WINE_PREATTACH:
|
|
||||||
return FALSE; /* prefer native version */
|
|
||||||
|
|
||||||
case DLL_PROCESS_ATTACH:
|
|
||||||
DisableThreadLibraryCalls( hinstDLL );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************
|
/*****************************************************
|
||||||
* PrintUIEntryW [printui.@]
|
* PrintUIEntryW [printui.@]
|
||||||
* Commandline-Interface for using printui.dll with rundll32.exe
|
* Commandline-Interface for using printui.dll with rundll32.exe
|
||||||
|
|
Loading…
Reference in New Issue