dsound: Fix duplex test.

This commit is contained in:
Robert Reif 2006-02-09 12:08:05 +01:00 committed by Alexandre Julliard
parent 094e85398b
commit 64841caba8
1 changed files with 4 additions and 1 deletions

View File

@ -123,12 +123,15 @@ static void IDirectSoundFullDuplex_tests(void)
rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL, rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL,
CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex, CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex,
(void**)&dsfdo); (void**)&dsfdo);
ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG, ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG||rc==CLASS_E_CLASSNOTAVAILABLE,
"CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n", "CoCreateInstance(CLSID_DirectSoundFullDuplex) failed: %s (0x%08lx)\n",
DXGetErrorString8(rc), rc); DXGetErrorString8(rc), rc);
if (rc==REGDB_E_CLASSNOTREG) { if (rc==REGDB_E_CLASSNOTREG) {
trace(" Class Not Registered\n"); trace(" Class Not Registered\n");
return; return;
} else if (rc==CLASS_E_CLASSNOTAVAILABLE) {
trace(" Class Not Available\n");
return;
} }
if (dsfdo) if (dsfdo)
IDirectSoundFullDuplex_test(dsfdo, FALSE, NULL, NULL); IDirectSoundFullDuplex_test(dsfdo, FALSE, NULL, NULL);