Commit 918a41e4 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 2e35f400
MODULE = pdh.dll
IMPORTLIB = pdh
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
pdh_main.c
......@@ -67,25 +67,6 @@ static inline WCHAR *pdh_strdup_aw( const char *src )
return dst;
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%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;
case DLL_PROCESS_DETACH:
if (lpvReserved) break;
DeleteCriticalSection(&pdh_handle_cs);
break;
}
return TRUE;
}
union value
{
LONG longvalue;
......
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