[PATCH] winealsa.drv: fix typo in IDsCaptureDriverImpl_Open

Erik Inge Bolsø knan-wine at anduin.net
Mon Sep 8 13:04:46 CDT 2008


---
 dlls/winealsa.drv/dscapture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Fixes a crash with native dxdiag, collecting info for MassEffectConfig. 
Pretty obvious typo. Patch against 1.1.4.

diff --git a/dlls/winealsa.drv/dscapture.c b/dlls/winealsa.drv/dscapture.c
index 6c5b4a4..872a80c 100644
--- a/dlls/winealsa.drv/dscapture.c
+++ b/dlls/winealsa.drv/dscapture.c
@@ -884,7 +884,7 @@ static HRESULT WINAPI IDsCaptureDriverImpl_Open(PIDSCDRIVER iface)
         return hr;
     }
 
-    err = snd_pcm_open(&pcm, WOutDev[This->wDevID].pcmname, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
+    err = snd_pcm_open(&pcm, WInDev[This->wDevID].pcmname, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
     if (err < 0) goto err;
     err = snd_pcm_hw_params_any(pcm, hw_params);
     if (err < 0) goto err;
-- 
1.5.4.3



More information about the wine-patches mailing list