Rob Shearman : dsound: Implement QueryInterface for KsPropertySet
objects.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Apr 30 07:11:20 CDT 2007
Module: wine
Branch: master
Commit: 543a7d8f2de0f12a6310915cd956866fe24e0827
URL: http://source.winehq.org/git/wine.git/?a=commit;h=543a7d8f2de0f12a6310915cd956866fe24e0827
Author: Rob Shearman <rob at codeweavers.com>
Date: Sun Apr 29 17:45:44 2007 +0100
dsound: Implement QueryInterface for KsPropertySet objects.
---
dlls/dsound/propset.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/propset.c b/dlls/dsound/propset.c
index 66a4af6..b83ae37 100644
--- a/dlls/dsound/propset.c
+++ b/dlls/dsound/propset.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define COBJMACROS
#include <stdarg.h>
#include "windef.h"
@@ -241,8 +242,14 @@ static HRESULT WINAPI IKsPrivatePropertySetImpl_QueryInterface(
IKsPrivatePropertySetImpl *This = (IKsPrivatePropertySetImpl *)iface;
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
+ if (IsEqualIID(riid, &IID_IUnknown) ||
+ IsEqualIID(riid, &IID_IKsPropertySet)) {
+ *ppobj = iface;
+ IUnknown_AddRef(iface);
+ return S_OK;
+ }
*ppobj = NULL;
- return DSERR_INVALIDPARAM;
+ return E_NOINTERFACE;
}
static ULONG WINAPI IKsPrivatePropertySetImpl_AddRef(LPKSPROPERTYSET iface)
More information about the wine-cvs
mailing list