ntprint: 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-24 10:28:05 +01:00
parent 9f9d1e6675
commit 2e35f400f8
2 changed files with 1 additions and 20 deletions

View File

@ -1,7 +1,7 @@
MODULE = ntprint.dll
IMPORTS = winspool
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
ntprint.c

View File

@ -39,25 +39,6 @@ typedef struct {
DWORD installed; /* Number of installed Monitors */
} monitorinfo_t;
/*****************************************************
* 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;
}
/*****************************************************
* PSetupCreateMonitorInfo [NTPRINT.@]
*