Module: wine Branch: refs/heads/master Commit: ba6260899635323e1dc6c90995b0e0e8d53dac1a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ba6260899635323e1dc6c909...
Author: Robert Reif reif@earthlink.net Date: Fri Apr 7 12:06:06 2006 -0400
dsound: Fix capture test.
Remove bogus release of NULL pointer code found by Coverity.
---
dlls/dsound/tests/capture.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/dlls/dsound/tests/capture.c b/dlls/dsound/tests/capture.c index 4443a38..603f378 100644 --- a/dlls/dsound/tests/capture.c +++ b/dlls/dsound/tests/capture.c @@ -471,11 +471,6 @@ static BOOL WINAPI dscenum_callback(LPGU rc=pDirectSoundCaptureCreate(lpGuid,NULL,NULL); ok(rc==DSERR_INVALIDPARAM,"DirectSoundCaptureCreate() should have " "returned DSERR_INVALIDPARAM, returned: %s\n",DXGetErrorString8(rc)); - if (rc==DS_OK) { - ref=IDirectSoundCapture_Release(dsco); - ok(ref==0,"IDirectSoundCapture_Release() has %d references, should " - "have 0\n",ref); - }
rc=pDirectSoundCaptureCreate(lpGuid,&dsco,NULL); ok((rc==DS_OK)||(rc==DSERR_NODRIVER)||(rc==E_FAIL)||(rc==DSERR_ALLOCATED),