Module: wine Branch: refs/heads/master Commit: 2c4c204371232d7d93f390e6a0e46f31531935af URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2c4c204371232d7d93f390e6...
Author: Robert Reif reif@earthlink.net Date: Fri Apr 7 23:08:52 2006 -0400
dsound: Remove unnecessary NULL pointer check.
---
dlls/dsound/capture.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 8b42582..969a079 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -793,10 +793,7 @@ IDirectSoundCaptureBufferImpl_Release( L IDsCaptureDriverBuffer_Release(This->device->hwbuf);
/* remove from DirectSoundCaptureDevice */ - if (This->device) - This->device->capture_buffer = NULL; - else - ERR("does not reference dsound\n"); + This->device->capture_buffer = NULL;
if (This->notify) IDirectSoundNotify_Release((LPDIRECTSOUNDNOTIFY)This->notify);