msvcr110/tests: Use the available ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-06-06 00:38:34 +02:00 committed by Alexandre Julliard
parent 551ff6e966
commit 51560bb9e5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static void test_setlocale(void)
"uz-Latn-uz", "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]); ret = p_setlocale(LC_ALL, names[i]);
ok(ret != NULL, "expected success, but got NULL\n"); ok(ret != NULL, "expected success, but got NULL\n");
ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret); ok(!strcmp(ret, names[i]), "expected %s, got %s\n", names[i], ret);