mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
dsound: Hold lock in GetStatus.
This commit is contained in:
parent
3f9209eb2a
commit
98933362f3
@ -465,11 +465,13 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetStatus(
|
||||
}
|
||||
|
||||
*status = 0;
|
||||
RtlAcquireResourceShared(&This->lock, TRUE);
|
||||
if ((This->state == STATE_STARTING) || (This->state == STATE_PLAYING)) {
|
||||
*status |= DSBSTATUS_PLAYING;
|
||||
if (This->playflags & DSBPLAY_LOOPING)
|
||||
*status |= DSBSTATUS_LOOPING;
|
||||
}
|
||||
RtlReleaseResource(&This->lock);
|
||||
|
||||
TRACE("status=%x\n", *status);
|
||||
return DS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user