Michael Stefaniuc : msrle32/tests: Use the available ARRAY_SIZE() macro.
Alexandre Julliard
julliard at winehq.org
Tue Jun 5 17:06:42 CDT 2018
Module: wine
Branch: master
Commit: 5e37ea1a4ab217b7b5c5863354abfc4f05b6ae6c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5e37ea1a4ab217b7b5c5863354abfc4f05b6ae6c
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Tue Jun 5 20:09:46 2018 +0200
msrle32/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/msrle32/tests/msrle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msrle32/tests/msrle.c b/dlls/msrle32/tests/msrle.c
index 14ddddb..4a442a0 100644
--- a/dlls/msrle32/tests/msrle.c
+++ b/dlls/msrle32/tests/msrle.c
@@ -129,7 +129,7 @@ static void test_raw_decompress(void)
outbits = HeapAlloc(GetProcessHeap(), 0, bih->biSizeImage);
ok(outbits != NULL, "Expected non-NULL value\n");
- for (i = 0; i < sizeof(codecs) / sizeof(codecs[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(codecs); i++)
{
memset(bits, i + 0xAF, bih->biSizeImage);
More information about the wine-cvs
mailing list