mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
winmm: Add missing LeaveCriticalSection on error paths (Smatch).
This commit is contained in:
parent
4bdb5b55ec
commit
3b4bb9dcf3
1 changed files with 2 additions and 0 deletions
|
@ -757,12 +757,14 @@ static HRESULT reroute_mapper_device(WINMM_Device *device, BOOL is_out)
|
|||
hr = IAudioClock_GetFrequency(device->clock, &clock_freq);
|
||||
if(FAILED(hr)){
|
||||
WARN("GetFrequency failed: %08x\n", hr);
|
||||
LeaveCriticalSection(&device->lock);
|
||||
return hr;
|
||||
}
|
||||
|
||||
hr = IAudioClock_GetPosition(device->clock, &clock_pos, NULL);
|
||||
if(FAILED(hr)){
|
||||
WARN("GetPosition failed: %08x\n", hr);
|
||||
LeaveCriticalSection(&device->lock);
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue