Michael Stefaniuc : msvcr110/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Mon Jun 11 13:10:50 CDT 2018
Module: wine
Branch: master
Commit: 51560bb9e5f50facae23935e97194bf72cca9dc1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=51560bb9e5f50facae23935e97194bf72cca9dc1
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Jun 6 00:38:34 2018 +0200
msvcr110/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcr110/tests/msvcr110.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcr110/tests/msvcr110.c b/dlls/msvcr110/tests/msvcr110.c
index 3aa394d..c0a182f 100644
--- a/dlls/msvcr110/tests/msvcr110.c
+++ b/dlls/msvcr110/tests/msvcr110.c
@@ -61,7 +61,7 @@ static void test_setlocale(void)
"uz-Latn-uz",
};
- for(i=0; i<sizeof(names)/sizeof(*names); i++) {
+ for(i=0; i<ARRAY_SIZE(names); i++) {
ret = p_setlocale(LC_ALL, names[i]);
ok(ret != NULL, "expected success, but got NULL\n");
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret);
More information about the wine-cvs
mailing list