Alexandre Julliard : dsound: Fix an error return code.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 27 08:55:17 CDT 2015


Module: wine
Branch: master
Commit: 8427c7816dbb7495661f86a9543ca484e3923ea2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8427c7816dbb7495661f86a9543ca484e3923ea2

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Mar 27 11:33:50 2015 +0900

dsound: Fix an error return code.

---

 dlls/dsound/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index 4e84d17..d735dc3 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -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;




More information about the wine-cvs mailing list