comctl32/tests: Fix loop bounds.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-10-09 13:35:18 +03:00 committed by Alexandre Julliard
parent 573b3eb432
commit c11fca37de
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ static void test_IPM_SETFOCUS(void)
EnumChildWindows(hwnd, test_child_enum_proc, (LPARAM)&child_enum);
ok(child_enum.count == 4, "Unexpected child count %u.\n", child_enum.count);
for (i = 0; i < 3; ++i)
for (i = 0; i < 4; ++i)
SendMessageA(child_enum.fields[i], EM_SETSEL, -1, 0);
SendMessageA(child_enum.fields[0], EM_GETSEL, (WPARAM)&from, (LPARAM)&to);
@ -130,7 +130,7 @@ static void test_WM_SETFOCUS(void)
SetFocus(child_enum.fields[3]);
for (i = 0; i < 3; ++i)
for (i = 0; i < 4; ++i)
SendMessageA(child_enum.fields[i], EM_SETSEL, -1, 0);
SendMessageA(child_enum.fields[0], EM_GETSEL, (WPARAM)&from, (LPARAM)&to);