user32/tests: Accept DISP_CHANGE_RESTART also for tests expected to fail.
This commit is contained in:
parent
120120e37e
commit
e55a691ded
|
@ -241,7 +241,8 @@ static void test_ChangeDisplaySettingsEx(void)
|
||||||
res = pChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL);
|
res = pChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL);
|
||||||
ok(vid_modes_test[i].must_succeed ?
|
ok(vid_modes_test[i].must_succeed ?
|
||||||
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART) :
|
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART) :
|
||||||
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_BADMODE || res == DISP_CHANGE_BADPARAM),
|
(res == DISP_CHANGE_SUCCESSFUL || res == DISP_CHANGE_RESTART ||
|
||||||
|
res == DISP_CHANGE_BADMODE || res == DISP_CHANGE_BADPARAM),
|
||||||
"Unexpected ChangeDisplaySettingsEx() return code for resolution[%d]: %d\n", i, res);
|
"Unexpected ChangeDisplaySettingsEx() return code for resolution[%d]: %d\n", i, res);
|
||||||
|
|
||||||
if (res == DISP_CHANGE_SUCCESSFUL)
|
if (res == DISP_CHANGE_SUCCESSFUL)
|
||||||
|
|
Loading…
Reference in New Issue