winealsa.drv: Fix missing unlock on the error path. Found by Smatch.
This commit is contained in:
parent
2323e79e36
commit
399a297b19
|
@ -459,6 +459,7 @@ static HRESULT WINAPI IDsDriverBufferImpl_GetPosition(PIDSDRIVERBUFFER iface,
|
|||
if (!This->pcm)
|
||||
{
|
||||
FIXME("Bad pointer for pcm: %p\n", This->pcm);
|
||||
LeaveCriticalSection(&This->pcm_crst);
|
||||
return DSERR_GENERIC;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue