[PATCH] winmm: Load winealsa if winepulse is found
Austin English
austinenglish at gmail.com
Wed Oct 17 13:59:24 CDT 2012
On Tue, Oct 16, 2012 at 5:10 AM, Maarten Lankhorst
<m.b.lankhorst at gmail.com> wrote:
> From: Maarten Lankhorst <maarten.lankhorst at canonical.com>
>
> Fixes midi on winepulse
> ---
> dlls/winmm/lolvldrv.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> 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.7.11.3
Shouldn't this be part of the winepulse patch itself? It will never
get used in Wine, as is...
--
-Austin
More information about the wine-devel
mailing list