You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
952 B
30 lines
952 B
From 8f39a12639ee1d39c8caaf5f2ab72540d281814e Mon Sep 17 00:00:00 2001
|
|
From: Maarten Lankhorst <maarten.lankhorst@canonical.com>
|
|
Date: Sat, 29 Dec 2012 01:02:30 +0100
|
|
Subject: [PATCH] winmm: Load winealsa if winepulse is found
|
|
|
|
Fixes midi on winepulse
|
|
---
|
|
dlls/winmm/lolvldrv.c | 5 ++++-
|
|
1 files changed, 4 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/dlls/winmm/lolvldrv.c b/dlls/winmm/lolvldrv.c
|
|
index f387323..3b1be27 100644
|
|
--- a/dlls/winmm/lolvldrv.c
|
|
+++ b/dlls/winmm/lolvldrv.c
|
|
@@ -543,7 +543,10 @@ static void MMDRV_Init(void)
|
|
drvA = HeapAlloc(GetProcessHeap(), 0, size);
|
|
WideCharToMultiByte(CP_ACP, 0, pv.u.pwszVal, -1, drvA, size, NULL, NULL);
|
|
|
|
- MMDRV_Install(drvA, drvA, FALSE);
|
|
+ if (!strcasecmp(drvA, "winepulse.drv"))
|
|
+ MMDRV_Install("winealsa.drv", "winealsa.drv", 0);
|
|
+ else
|
|
+ MMDRV_Install(drvA, drvA, FALSE);
|
|
|
|
HeapFree(GetProcessHeap(), 0, drvA);
|
|
PropVariantClear(&pv);
|
|
--
|
|
1.6.5.GIT
|
|
|