From 50edd41014a84d779b08c8948627ccc226f59ee1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 Feb 2021 10:23:39 +0100 Subject: [PATCH] openal32: Use --prefer-native instead of DLL_WINE_PREATTACH. Signed-off-by: Alexandre Julliard --- dlls/openal32/Makefile.in | 2 ++ dlls/openal32/openal.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/openal32/Makefile.in b/dlls/openal32/Makefile.in index 1b794a3fc60..c787d96f886 100644 --- a/dlls/openal32/Makefile.in +++ b/dlls/openal32/Makefile.in @@ -1,5 +1,7 @@ MODULE = openal32.dll EXTRALIBS = $(OPENAL_LIBS) +EXTRADLLFLAGS = -Wb,--prefer-native + C_SRCS = \ openal.c diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index cd49b926a83..5a4e1e71e36 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -99,8 +99,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) { switch(reason) { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinst); #define LOADFUNC(x) x = alcGetProcAddress(NULL, #x)