mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 20:53:38 +00:00
wevtapi: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
faa7af5e78
commit
68b11add82
|
@ -1,7 +1,7 @@
|
|||
MODULE = wevtapi.dll
|
||||
IMPORTLIB = wevtapi
|
||||
|
||||
EXTRADLLFLAGS = -mno-cygwin
|
||||
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
|
||||
|
||||
C_SRCS = \
|
||||
main.c
|
||||
|
|
|
@ -30,22 +30,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wevtapi);
|
|||
|
||||
static const WCHAR log_pathW[] = L"C:\\windows\\temp\\evt.log";
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
EVT_HANDLE WINAPI EvtOpenSession(EVT_LOGIN_CLASS login_class, void *login, DWORD timeout, DWORD flags)
|
||||
{
|
||||
FIXME("(%u %p %u %u) stub\n", login_class, login, timeout, flags);
|
||||
|
|
Loading…
Reference in a new issue