Commit 7df6c7ed authored by Alexandre Julliard's avatar Alexandre Julliard

fntcache: Use --prefer-native instead of DLL_WINE_PREATTACH.

parent 2ef34b7f
MODULE = fntcache.dll
IMPORTS = advapi32
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
main.c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment