Commit 8427c781 authored by Alexandre Julliard's avatar Alexandre Julliard

dsound: Fix an error return code.

parent 4eedf6a4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment