[PATCH 1/5] dswave/tests: Check for the private interface in DirectSoundWave.
Michael Stefaniuc
mstefani at redhat.de
Tue Jun 9 17:59:32 CDT 2015
---
dlls/dswave/tests/dswave.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/dswave/tests/dswave.c b/dlls/dswave/tests/dswave.c
index 634513e..c2fc08f 100644
--- a/dlls/dswave/tests/dswave.c
+++ b/dlls/dswave/tests/dswave.c
@@ -24,6 +24,9 @@
#include <wine/test.h>
#include <dmusici.h>
+DEFINE_GUID(IID_IDirectMusicWavePRIVATE, 0x69e934e4, 0x97f1, 0x4f1d, 0x88, 0xe8, 0xf2, 0xac, 0x88,
+ 0x67, 0x13, 0x27);
+
static BOOL missing_dswave(void)
{
IDirectMusicObject *dmo;
@@ -77,6 +80,14 @@ static void test_COM(void)
ok(refcount == 5, "refcount == %u, expected 5\n", refcount);
refcount = IUnknown_Release(unk);
+ hr = IDirectMusicObject_QueryInterface(dmo, &IID_IDirectMusicWavePRIVATE, (void**)&unk);
+ todo_wine ok(hr == S_OK, "QueryInterface for IID_IDirectMusicWavePRIVATE failed: %08x\n", hr);
+ if (hr == S_OK) {
+ refcount = IUnknown_AddRef(unk);
+ ok(refcount == 6, "refcount == %u, expected 6\n", refcount);
+ refcount = IUnknown_Release(unk);
+ }
+
/* Interfaces that native does not support */
hr = IDirectMusicObject_QueryInterface(dmo, &IID_IDirectMusicSegment, (void**)&unk);
ok(hr == E_NOINTERFACE, "QueryInterface for IID_IDirectMusicSegment failed: %08x\n", hr);
--
2.1.0
More information about the wine-patches
mailing list