diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 8c1b81240b5..c565d985b4e 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -1685,11 +1685,8 @@ HRESULT DirectSoundDevice_DuplicateSoundBuffer( if (*ppdsb) { dsb->secondary = (SecondaryBufferImpl*)*ppdsb; IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb); - } else { + } else WARN("SecondaryBufferImpl_Create failed\n"); - IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)dsb); - IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER8)dsb); - } } return hres;