dsound/tests: make sure to use return values (LLVM/Clang)

Austin English austinenglish at gmail.com
Mon Feb 7 16:57:29 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/dsound/tests/ds3d8.c b/dlls/dsound/tests/ds3d8.c
index aa72648..41de792 100644
--- a/dlls/dsound/tests/ds3d8.c
+++ b/dlls/dsound/tests/ds3d8.c
@@ -648,7 +648,10 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
                "IDirectSound8_CreateSoundBuffer(secondary) should have "
                "returned DSERR_INVALIDPARAM, returned %08x\n", rc);
             if (secondary)
+            {
                 ref=IDirectSoundBuffer_Release(secondary);
+                ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references, should have 0\n",ref);
+            }
             init_format(&wfx,WAVE_FORMAT_PCM,22050,16,1);
         }
 


More information about the wine-patches mailing list