mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
dmusic/tests: Don't crash with old dmusic versions.
This commit is contained in:
parent
47cc78c454
commit
7474a37050
1 changed files with 5 additions and 0 deletions
|
@ -245,6 +245,11 @@ static void test_COM(void)
|
|||
/* Same refcount for DirectMusic and DirectMusic8 */
|
||||
hr = CoCreateInstance(&CLSID_DirectMusic, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusic8,
|
||||
(void**)&dm8);
|
||||
if (hr == E_NOINTERFACE)
|
||||
{
|
||||
win_skip("DirectMusic too old (no IDirectMusic8)\n");
|
||||
return;
|
||||
}
|
||||
ok(hr == S_OK, "DirectMusic8 create failed: %08x, expected S_OK\n", hr);
|
||||
refcount = IDirectMusic8_AddRef(dm8);
|
||||
ok(refcount == 2, "refcount == %u, expected 2\n", refcount);
|
||||
|
|
Loading…
Reference in a new issue