diff --git a/dll/directx/wine/dsound/duplex.c b/dll/directx/wine/dsound/duplex.c index dbee1b16ba6..5ab498ba199 100644 --- a/dll/directx/wine/dsound/duplex.c +++ b/dll/directx/wine/dsound/duplex.c @@ -535,6 +535,9 @@ IDirectSoundFullDuplexImpl_Initialize( lpDscBufferDesc, lpDsBufferDesc, hWnd, dwLevel, lplpDirectSoundCaptureBuffer8, lplpDirectSoundBuffer8); + if (!lplpDirectSoundCaptureBuffer8 || !lplpDirectSoundBuffer8) + return E_INVALIDARG; + if (This->renderer_device != NULL || This->capture_device != NULL) { WARN("already initialized\n"); *lplpDirectSoundCaptureBuffer8 = NULL;