Module: wine Branch: refs/heads/master Commit: 64841caba83059c430f3ef4dbe9a93e8b1b41f7f URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=64841caba83059c430f3ef4d...
Author: Robert Reif reif@earthlink.net Date: Thu Feb 9 12:08:05 2006 +0100
dsound: Fix duplex test.
---
dlls/dsound/tests/duplex.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/tests/duplex.c b/dlls/dsound/tests/duplex.c index 2833d35..45acdff 100644 --- a/dlls/dsound/tests/duplex.c +++ b/dlls/dsound/tests/duplex.c @@ -123,12 +123,15 @@ static void IDirectSoundFullDuplex_tests rc=CoCreateInstance(&CLSID_DirectSoundFullDuplex, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectSoundFullDuplex, (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", DXGetErrorString8(rc), rc); if (rc==REGDB_E_CLASSNOTREG) { trace(" Class Not Registered\n"); return; + } else if (rc==CLASS_E_CLASSNOTAVAILABLE) { + trace(" Class Not Available\n"); + return; } if (dsfdo) IDirectSoundFullDuplex_test(dsfdo, FALSE, NULL, NULL);