dsound: Fix an error return code.
This commit is contained in:
parent
4eedf6a4b3
commit
8427c7816d
@ -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);
|
TRACE("(%p,%s,%u,%s,%p)\n",This,debugstr_guid(rguidObject),dwIndex,debugstr_guid(rguidInterface),ppObject);
|
||||||
|
|
||||||
if (dwIndex >= This->num_filters)
|
if (dwIndex >= This->num_filters)
|
||||||
return DSERR_OBJECTNOTFOUND;
|
return DSERR_CONTROLUNAVAIL;
|
||||||
|
|
||||||
if (!ppObject)
|
if (!ppObject)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user