Nikolay Sivov : comctl32/tests: Fix loop bounds.
Alexandre Julliard
julliard at winehq.org
Fri Oct 9 16:00:44 CDT 2020
Module: wine
Branch: master
Commit: c11fca37de27b6f7afc3487d99b69dd8ce422493
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c11fca37de27b6f7afc3487d99b69dd8ce422493
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Oct 9 13:35:18 2020 +0300
comctl32/tests: Fix loop bounds.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 2df25a5a65..5c4db5adc8 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);
More information about the wine-cvs
mailing list