[PATCH 2/2] comctl32/tests: Fix loop bounds.
Nikolay Sivov
nsivov at codeweavers.com
Fri Oct 9 05:35:18 CDT 2020
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/comctl32/tests/ipaddress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/ipaddress.c b/dlls/comctl32/tests/ipaddress.c
index 9bb9dd63d71..fe1f95a95e1 100644
--- a/dlls/comctl32/tests/ipaddress.c
+++ b/dlls/comctl32/tests/ipaddress.c
@@ -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);
--
2.28.0
More information about the wine-devel
mailing list