Commit 61393fa0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dsound: Check for NULL listener (Coverity).

parent b6c7eda2
...@@ -767,9 +767,11 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play, ...@@ -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, "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment