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

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-06-06 00:38:36 +02:00 committed by Alexandre Julliard
parent 33e590638c
commit 44bd013ef3
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ static void test_DrawDib_sizeimage(void)
hdd = DrawDibOpen(); hdd = DrawDibOpen();
ok(hdd != NULL, "DrawDibOpen failed\n"); ok(hdd != NULL, "DrawDibOpen failed\n");
for (i = 0; i < sizeof(test_data)/sizeof(test_data[0]); i++) { for (i = 0; i < ARRAY_SIZE(test_data); i++) {
char *hash; char *hash;
memset(dst_bits, 0xff, dst_dib_size); memset(dst_bits, 0xff, dst_dib_size);
init_bmi(&src_info, test_data[i].width, test_data[i].height, test_data[i].size); init_bmi(&src_info, test_data[i].width, test_data[i].height, test_data[i].size);