From 2c4c204371232d7d93f390e6a0e46f31531935af Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 7 Apr 2006 23:08:52 -0400 Subject: [PATCH] dsound: Remove unnecessary NULL pointer check. --- dlls/dsound/capture.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 8b4258274a3..969a0790c84 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -793,10 +793,7 @@ IDirectSoundCaptureBufferImpl_Release( LPDIRECTSOUNDCAPTUREBUFFER8 iface ) 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);