fntcache: 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-23 10:05:44 +01:00
parent 2ef34b7f5b
commit 7df6c7edfe
2 changed files with 1 additions and 22 deletions

View File

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

View File

@ -25,30 +25,9 @@
WINE_DEFAULT_DEBUG_CHANNEL(fontcache);
static HINSTANCE hInst;
static SERVICE_STATUS_HANDLE service_handle;
static HANDLE stop_event;
/***********************************************************************
* DllMain (fntcache.@)
*/
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);
hInst = hinstDLL;
break;
}
return TRUE;
}
static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, void *event_data, void *context )
{
SERVICE_STATUS status;