dsound: Fix an error return code.

This commit is contained in:
Alexandre Julliard 2015-03-27 11:33:50 +09:00
parent 4eedf6a4b3
commit 8427c7816d

View file

@ -850,7 +850,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetObjectInPath(IDirectSoundBuffer8
TRACE("(%p,%s,%u,%s,%p)\n",This,debugstr_guid(rguidObject),dwIndex,debugstr_guid(rguidInterface),ppObject);
if (dwIndex >= This->num_filters)
return DSERR_OBJECTNOTFOUND;
return DSERR_CONTROLUNAVAIL;
if (!ppObject)
return E_INVALIDARG;