From 8818b890516048baac4a7235499c77c2f69c18b4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 Feb 2021 08:59:09 +0100 Subject: [PATCH] vdmdbg: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/vdmdbg/Makefile.in | 2 +- dlls/vdmdbg/vdmdbg.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/dlls/vdmdbg/Makefile.in b/dlls/vdmdbg/Makefile.in index d9294b61763..495812797ad 100644 --- a/dlls/vdmdbg/Makefile.in +++ b/dlls/vdmdbg/Makefile.in @@ -1,7 +1,7 @@ MODULE = vdmdbg.dll IMPORTLIB = vdmdbg -EXTRADLLFLAGS = -mno-cygwin +EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native C_SRCS = \ vdmdbg.c diff --git a/dlls/vdmdbg/vdmdbg.c b/dlls/vdmdbg/vdmdbg.c index 4d2656c3a1e..b56c62535ac 100644 --- a/dlls/vdmdbg/vdmdbg.c +++ b/dlls/vdmdbg/vdmdbg.c @@ -42,19 +42,3 @@ INT WINAPI VDMEnumProcessWOW(PROCESSENUMPROC fp, LPARAM lparam) FIXME("%p: stub!\n", fp); return 0; } - -/*********************************************************************** - * DllMain (VDMDBG.@) - */ -BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved ) -{ - switch(reason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls( inst ); - break; - } - return TRUE; -}