winmm: Close ACM stream when closing wave device.

This commit is contained in:
Andrew Eikum 2011-07-18 11:19:33 -05:00 committed by Alexandre Julliard
parent 80fd691e9e
commit 2a58273fcd
1 changed files with 5 additions and 0 deletions

View File

@ -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;