loadperf: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fe0d233f55
commit
987ca1f1ff
|
@ -1,7 +1,7 @@
|
|||
MODULE = loadperf.dll
|
||||
IMPORTLIB = loadperf
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
loadperf_main.c
|
||||
|
|
|
@ -31,22 +31,6 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(loadperf);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static WCHAR *strdupAW(const char *str)
|
||||
{
|
||||
WCHAR *ret = NULL;
|
||||
|
|
Loading…
Reference in New Issue