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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-02-25 08:59:52 +01:00
parent 96d1c58e70
commit 1b826d9f56
2 changed files with 1 additions and 16 deletions

View File

@ -1,6 +1,6 @@
MODULE = xolehlp.dll
IMPORTS = adsiid uuid
EXTRADLLFLAGS = -mno-cygwin
EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = xolehlp.c

View File

@ -630,21 +630,6 @@ static HRESULT TransactionManager_Create(REFIID riid, void **ppv)
}
/* DTC Proxy Core Object end */
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
TRACE("%p, %u, %p\n", hinst, reason, reserved);
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hinst );
break;
}
return TRUE;
}
static BOOL is_local_machineA( const CHAR *server )
{
static const CHAR dot[] = ".";