From b6dd5de03f32dc2fc81ae65db9d0cc71521bd0d7 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Mon, 10 Oct 2005 10:27:50 +0000 Subject: [PATCH] Fix dsound8 test to deal with an installed but unregistered IDirectSound8. --- dlls/dsound/tests/dsound8.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c index 764beaca877..01890a40b54 100644 --- a/dlls/dsound/tests/dsound8.c +++ b/dlls/dsound/tests/dsound8.c @@ -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);