Michael Stefaniuc : riched20/tests: Use ARRAY_SIZE instead of open coding it.
Module: wine Branch: master Commit: 90b6288f54afdc4430dac146779a92b89f4d1219 URL: https://gitlab.winehq.org/wine/wine/-/commit/90b6288f54afdc4430dac146779a92b... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Fri Jul 1 19:58:42 2022 +0200 riched20/tests: Use ARRAY_SIZE instead of open coding it. --- dlls/riched20/tests/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 1661654aa11..9551f490a2d 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -9030,7 +9030,7 @@ static void test_window_classes(void) int i; HWND hwnd; - for (i = 0; i < sizeof(test)/sizeof(test[0]); i++) + for (i = 0; i < ARRAY_SIZE(test); i++) { SetLastError(0xdeadbeef); hwnd = CreateWindowExA(0, test[i].class, NULL, WS_POPUP, 0, 0, 0, 0, 0, 0, 0, NULL);
participants (1)
-
Alexandre Julliard