xactengine3_7/tests: Skip tests when XACTEngine Initialization fails.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54151
This commit is contained in:
parent
b3ab1f8fb3
commit
7ac173fb43
1 changed files with 7 additions and 1 deletions
|
@ -206,7 +206,13 @@ static void test_notifications(void)
|
|||
params.fnNotificationCallback = notification_cb;
|
||||
|
||||
hr = IXACT3Engine_Initialize(engine, ¶ms);
|
||||
ok(hr == S_OK, "Cannot initialize engine, hr %#lx\n", hr);
|
||||
ok(hr == S_OK || broken(hr == XAUDIO2_E_INVALID_CALL), "Cannot initialize engine, hr %#lx\n", hr);
|
||||
if(FAILED(hr))
|
||||
{
|
||||
win_skip("Unable to Initialize XACT. No speakers attached?\n");
|
||||
IXACT3Engine_Release(engine);
|
||||
return;
|
||||
}
|
||||
|
||||
notification_desc.type = 0;
|
||||
notification_desc.flags = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue