From: Andrew Eikum Subject: [PATCH] openal32: Prefer native version Message-Id: <20151002140256.GJ13504@foghorn.codeweavers.com> Date: Fri, 2 Oct 2015 09:02:56 -0500 Because openal contexts are global per-process, applications that use openal will conflict with Wine DLLs that use openal like xaudio2_7 now does. Windows does not ship an openal32, so all applications that use openal will ship their own copy of it. According to Chris Robinson, Windows native openal32 works fine in Wine, so we should just use that to avoid the problem. This fixes bug 39339. Signed-off-by: Andrew Eikum --- Instead of using the preattach hook, we could just remove this module entirely. I'm fine with either. dlls/openal32/openal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index 5a4e1e7..cd49b92 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -99,6 +99,8 @@ 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) -- 2.6.0