Zhiyi Zhang (@zhiyi) commented about dlls/user32/tests/edit.c:
+ + tests[0] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, 0, {0, 0, 0, 0}}; + tests[1] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, 0, {0, 0, 10, 10}}; + tests[2] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, 0, {1, 1, 10, 10}}; + tests[3] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, WS_EX_CLIENTEDGE, {0, 0, 0, 0}}; + tests[4] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, WS_EX_CLIENTEDGE, {0, 0, 10, 10}}; + tests[5] = (struct state_tests){ES_MULTILINE | WS_VISIBLE, WS_EX_CLIENTEDGE, {1, 1, 10, 10}}; + + for (int i = 0; i < ARRAY_SIZE(tests); i++) + { + edit = create_editcontrol(tests[i].style, tests[i].style_ex); + SendMessageA(edit, EM_GETRECT, 0, (LPARAM)&correct); + SetWindowTextA(edit, "Test Test Test\r\n\r\nTest Test Test Test Test Test Test Test Test Test Test Test\r\n\r\nTest Test Test"); + SendMessageA(edit, EM_SETRECT, 0, (LPARAM)&tests[i].input); + SendMessageA(edit, EM_GETRECT, 0, (LPARAM)&rc); + todo_wine ok(rc.left == correct.left, "left(%d): Expected %ld, got %ld\n", i, correct.left, rc.left); Let's use EqualRect() instead.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6304#note_79092