dsound: Improve the IDirectSoundCaptureBuffer::GetObjectInPath stub
Michael Stefaniuc
mstefani at redhat.de
Mon Sep 17 14:06:51 CDT 2012
---
Should help with http://bugs.winehq.org/show_bug.cgi?id=27119
dlls/dsound/capture.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 309702a..5336b59 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -583,7 +583,11 @@ static HRESULT WINAPI IDirectSoundCaptureBufferImpl_GetObjectInPath(IDirectSound
FIXME( "(%p,%s,%u,%s,%p): stub\n", This, debugstr_guid(rguidObject),
dwIndex, debugstr_guid(rguidInterface), ppObject );
- return DS_OK;
+ if (!ppObject)
+ return DSERR_INVALIDPARAM;
+
+ *ppObject = NULL;
+ return DSERR_CONTROLUNAVAIL;
}
static HRESULT WINAPI IDirectSoundCaptureBufferImpl_GetFXStatus(IDirectSoundCaptureBuffer8 *iface,
--
1.7.6.5
More information about the wine-patches
mailing list