Fix dsound8 test to deal with an installed but unregistered

IDirectSound8.
This commit is contained in:
Robert Reif 2005-10-10 10:27:50 +00:00 committed by Alexandre Julliard
parent 97e2b9605e
commit b6dd5de03f
1 changed files with 6 additions and 1 deletions

View File

@ -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);