Commit 29fe7089 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmstyle/tests: Fix a crash on old dmusic versions.

parent 1318d578
......@@ -64,6 +64,10 @@ static void test_COM(void)
/* Same refcount for all DirectMusicStyle8 interfaces */
hr = CoCreateInstance(&CLSID_DirectMusicStyle, NULL, CLSCTX_INPROC_SERVER,
&IID_IDirectMusicStyle8, (void**)&dms8);
if (hr == E_NOINTERFACE) {
win_skip("Old version without IDirectMusicStyle8\n");
return;
}
ok(hr == S_OK, "DirectMusicStyle8 create failed: %08x, expected S_OK\n", hr);
refcount = IDirectMusicStyle8_AddRef(dms8);
ok(refcount == 2, "refcount == %u, expected 2\n", refcount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment