Michael Stefaniuc : msvfw32/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Wed Jun 6 15:21:47 CDT 2018
Module: wine
Branch: master
Commit: 44bd013ef33e91ec3423b42cbf79d29abf5c714e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=44bd013ef33e91ec3423b42cbf79d29abf5c714e
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Jun 6 00:38:36 2018 +0200
msvfw32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvfw32/tests/drawdib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvfw32/tests/drawdib.c b/dlls/msvfw32/tests/drawdib.c
index 0a59d82..92e60df 100644
--- a/dlls/msvfw32/tests/drawdib.c
+++ b/dlls/msvfw32/tests/drawdib.c
@@ -138,7 +138,7 @@ static void test_DrawDib_sizeimage(void)
hdd = DrawDibOpen();
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;
memset(dst_bits, 0xff, dst_dib_size);
init_bmi(&src_info, test_data[i].width, test_data[i].height, test_data[i].size);
More information about the wine-cvs
mailing list