Module: wine Branch: master Commit: 2a58273fcdfffc773ce02fb06ca3fcaad5eca1be URL: http://source.winehq.org/git/wine.git/?a=commit;h=2a58273fcdfffc773ce02fb06c...
Author: Andrew Eikum aeikum@codeweavers.com Date: Mon Jul 18 11:19:33 2011 -0500
winmm: Close ACM stream when closing wave device.
---
dlls/winmm/waveform.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 48efb0f..5121bb7 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1104,6 +1104,11 @@ static HRESULT WINMM_CloseDevice(WINMM_Device *device) device->stopped = TRUE; }
+ if(device->acm_handle){ + acmStreamClose(device->acm_handle, 0); + device->acm_handle = NULL; + } + IMMDevice_Release(device->device); device->device = NULL;