dsound: Remove unnecessary NULL pointer check.

This commit is contained in:
Robert Reif 2006-04-07 23:08:52 -04:00 committed by Alexandre Julliard
parent 90df5a967f
commit 2c4c204371
1 changed files with 1 additions and 4 deletions

View File

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