Commit b6dd5de0 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Fix dsound8 test to deal with an installed but unregistered

IDirectSound8.
parent 97e2b960
......@@ -197,7 +197,12 @@ static void IDirectSound8_tests(void)
/* try the COM class factory method of creation with no device specified */
rc=CoCreateInstance(&CLSID_DirectSound8, NULL, CLSCTX_INPROC_SERVER,
&IID_IDirectSound8, (void**)&dso);
ok(rc==S_OK,"CoCreateInstance() failed: %s\n",DXGetErrorString8(rc));
ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG,"CoCreateInstance() failed: %s\n",
DXGetErrorString8(rc));
if (rc==REGDB_E_CLASSNOTREG) {
trace(" Class Not Registered\n");
return;
}
if (dso)
IDirectSound8_test(dso, FALSE, NULL);
......
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