Commit c11fca37 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tests: Fix loop bounds.

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