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);