[dsound] Fix capture test (coverity)
Robert Reif
reif at earthlink.net
Fri Apr 7 11:06:06 CDT 2006
Remove bogus release of NULL pointer code found by Coverity.
-------------- next part --------------
Index: dlls/dsound/tests/capture.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/tests/capture.c,v
retrieving revision 1.26
diff -p -u -r1.26 capture.c
--- dlls/dsound/tests/capture.c 18 Nov 2005 12:04:36 -0000 1.26
+++ dlls/dsound/tests/capture.c 7 Apr 2006 16:01:24 -0000
@@ -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),
More information about the wine-patches
mailing list