dsound: Fix missing unlock on an error path. Found by Smatch.
This commit is contained in:
parent
a7e4669910
commit
2323e79e36
|
@ -639,6 +639,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCurrentPosition(
|
|||
hres = DSOUND_PrimaryGetPosition(device, playpos, writepos);
|
||||
if (hres != DS_OK) {
|
||||
WARN("DSOUND_PrimaryGetPosition failed\n");
|
||||
LeaveCriticalSection(&(device->mixlock));
|
||||
return hres;
|
||||
}
|
||||
if (writepos) {
|
||||
|
|
Loading…
Reference in New Issue