Commit 919bd612 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

user32/tests: Fix a test failure on Win9x, WinMe and NT4.

parent a42b7568
...@@ -213,8 +213,10 @@ static void test_ChangeDisplaySettingsEx(void) ...@@ -213,8 +213,10 @@ static void test_ChangeDisplaySettingsEx(void)
dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT; dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
dm.dmPelsWidth = width; dm.dmPelsWidth = width;
res = pChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL); res = pChangeDisplaySettingsExA(NULL, &dm, NULL, CDS_TEST, NULL);
ok(res == DISP_CHANGE_SUCCESSFUL, ok(res == DISP_CHANGE_SUCCESSFUL ||
"ChangeDisplaySettingsExA returned %d, expected DISP_CHANGE_SUCCESSFUL\n", res); res == DISP_CHANGE_BADMODE || /* Win98, WinMe */
res == DISP_CHANGE_FAILED, /* NT4 */
"ChangeDisplaySettingsExA returned unexpected %d\n", res);
memset(&dmW, 0, sizeof(dmW)); memset(&dmW, 0, sizeof(dmW));
dmW.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT; dmW.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
......
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