mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 22:30:15 +00:00
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
|
@ -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…
Reference in a new issue