dsound: Fix missing unlock on an error path. Found by Smatch.

This commit is contained in:
Michael Stefaniuc 2007-06-22 23:29:06 +02:00 committed by Alexandre Julliard
parent a7e4669910
commit 2323e79e36
1 changed files with 1 additions and 0 deletions

View File

@ -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) {