Commit 393135c3 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmusic/tests: Change the way of detecting a workable dmusic.

parent bf1a43e6
......@@ -323,10 +323,15 @@ static void test_COM_dmcoll(void)
static BOOL missing_dmusic(void)
{
IDirectMusic8 *dm;
HRESULT hr = CoCreateInstance(&CLSID_DirectMusic, (IUnknown*)&dm, CLSCTX_INPROC_SERVER,
&IID_IUnknown, (void**)&dm);
HRESULT hr = CoCreateInstance(&CLSID_DirectMusic, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusic,
(void**)&dm);
return (hr == REGDB_E_CLASSNOTREG || hr == CLASS_E_CLASSNOTAVAILABLE);
if (hr == S_OK && dm)
{
IDirectMusic_Release(dm);
return FALSE;
}
return TRUE;
}
START_TEST(dmusic)
......
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