Commit 594b7f26 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Fix capture test to not fail when IDirectSoundCapture class is not

registered.
parent 67f83ba7
...@@ -196,8 +196,12 @@ static void IDirectSoundCapture_tests(void) ...@@ -196,8 +196,12 @@ static void IDirectSoundCapture_tests(void)
/* try the COM class factory method of creation with no device specified */ /* try the COM class factory method of creation with no device specified */
rc=CoCreateInstance(&CLSID_DirectSoundCapture, NULL, CLSCTX_INPROC_SERVER, rc=CoCreateInstance(&CLSID_DirectSoundCapture, NULL, CLSCTX_INPROC_SERVER,
&IID_IDirectSoundCapture, (void**)&dsco); &IID_IDirectSoundCapture, (void**)&dsco);
ok(rc==S_OK,"CoCreateInstance(CLSID_DirectSoundCapture) failed: %s\n", ok(rc==S_OK||rc==REGDB_E_CLASSNOTREG,"CoCreateInstance(CLSID_DirectSoundCapture) failed: %s\n",
DXGetErrorString8(rc)); DXGetErrorString8(rc));
if (rc==REGDB_E_CLASSNOTREG) {
trace(" Class Not Registered\n");
return;
}
if (dsco) if (dsco)
IDirectSoundCapture_test(dsco, FALSE, NULL); IDirectSoundCapture_test(dsco, FALSE, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment