avrt: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1c5a00d265
commit
edc4fb8e9f
|
@ -2,7 +2,7 @@ MODULE = avrt.dll
|
|||
IMPORTLIB = avrt
|
||||
IMPORTS = user32
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
main.c
|
||||
|
|
|
@ -38,22 +38,6 @@ static inline WCHAR *heap_strdupAW(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;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
HANDLE WINAPI AvSetMmThreadCharacteristicsA(const char *name, DWORD *index)
|
||||
{
|
||||
WCHAR *nameW = NULL;
|
||||
|
|
Loading…
Reference in New Issue