dsound: Fix duplex test.
This commit is contained in:
parent
094e85398b
commit
64841caba8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue