[PATCH] winmm: Clean up ACM stream after query
Andrew Eikum
aeikum at codeweavers.com
Fri Jan 17 14:45:43 CST 2014
---
This should fix bug 33732.
dlls/winmm/waveform.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 01a54b4..6b259ff 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -915,8 +915,11 @@ static MMRESULT WINMM_TryDeviceMapping(WINMM_Device *device, WAVEFORMATEX *fmt,
return mr;
/* yes it can. initialize the audioclient and return success */
- if(is_query)
+ if(is_query){
+ acmStreamClose(device->acm_handle, 0);
+ device->acm_handle = NULL;
return MMSYSERR_NOERROR;
+ }
hr = IAudioClient_Initialize(device->client, AUDCLNT_SHAREMODE_SHARED,
AUDCLNT_STREAMFLAGS_EVENTCALLBACK | AUDCLNT_STREAMFLAGS_NOPERSIST,
--
1.8.5.3
More information about the wine-patches
mailing list