Michael Stefaniuc : dswave/tests: Check for the private interface in DirectSoundWave.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 10 10:09:18 CDT 2015
Module: wine
Branch: master
Commit: 770f7de1f4533324f270bd797641da642583cf21
URL: http://source.winehq.org/git/wine.git/?a=commit;h=770f7de1f4533324f270bd797641da642583cf21
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 10 00:59:32 2015 +0200
dswave/tests: Check for the private interface in DirectSoundWave.
---
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);
More information about the wine-cvs
mailing list