[PATCH] dsound: skip unknown sizes in tests (Coverity)
Marcus Meissner
marcus at jet.franken.de
Wed Oct 3 09:03:52 CDT 2012
Like in ds3d8d.c, skip/return out of uninitialized branch,
even if it likely does not happen. CID 214662
Ciao, Marcus
---
dlls/dsound/tests/ds3d.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c
index 36e59c9..d8d626f 100644
--- a/dlls/dsound/tests/ds3d.c
+++ b/dlls/dsound/tests/ds3d.c
@@ -381,6 +381,9 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
rc=IDirectSoundBuffer_GetFormat(*dsbo,(WAVEFORMATEX*)&wfxe,size,NULL);
wfx = wfxe.Format;
ieee = IsEqualGUID(&wfxe.SubFormat, &KSDATAFORMAT_SUBTYPE_IEEE_FLOAT);
+ } else {
+ skip("Unknown size of format, skipping.\n");
+ return;
}
ok(rc==DS_OK,
"IDirectSoundBuffer_GetFormat() failed: %08x\n", rc);
--
1.7.3.4
More information about the wine-patches
mailing list