mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dsound: Check for NULL listener (Coverity).
This commit is contained in:
parent
b6c7eda2d3
commit
61393fa021
1 changed files with 5 additions and 3 deletions
|
@ -767,9 +767,11 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
|
||||||
}
|
}
|
||||||
EXIT1:
|
EXIT1:
|
||||||
if (has_listener) {
|
if (has_listener) {
|
||||||
ref=IDirectSound3DListener_Release(listener);
|
if (listener) {
|
||||||
ok(ref==0,"IDirectSound3dListener_Release() listener has %d "
|
ref=IDirectSound3DListener_Release(listener);
|
||||||
"references, should have 0\n",ref);
|
ok(ref==0,"IDirectSound3dListener_Release() listener has %d "
|
||||||
|
"references, should have 0\n",ref);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ref=IDirectSoundBuffer_Release(primary);
|
ref=IDirectSoundBuffer_Release(primary);
|
||||||
ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references, "
|
ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references, "
|
||||||
|
|
Loading…
Reference in a new issue