openal32: Prefer native version.

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.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
This commit is contained in:
Andrew Eikum 2015-10-02 09:02:56 -05:00 committed by Alexandre Julliard
parent fc94e5dd5f
commit 7d6c602592
1 changed files with 2 additions and 0 deletions

View File

@ -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)