[PATCH] xaudio2: Prefer builtin version

Andrew Eikum aeikum at codeweavers.com
Mon Mar 26 13:14:20 CDT 2018

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>

Due to its pointer manipulation, 64-bit native xaudio2 DLLs are known to
be broken in Wine. Since native can be installed easily with the directx
runtimes, we should require users to explicitly choose to run it, to
help avoid these crashes.

 dlls/xaudio2_7/xaudio_dll.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/xaudio2_7/xaudio_dll.c b/dlls/xaudio2_7/xaudio_dll.c
index 0682a5f3b3..28cf98565b 100644
--- a/dlls/xaudio2_7/xaudio_dll.c
+++ b/dlls/xaudio2_7/xaudio_dll.c
@@ -89,8 +89,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
     switch (reason)
-        return FALSE;  /* prefer native version */
         instance = hinstDLL;
         DisableThreadLibraryCalls( hinstDLL );

More information about the wine-devel mailing list