Michael Stefaniuc : windowscodecs: Use the ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Thu Jan 31 14:50:13 CST 2019


Module: wine
Branch: master
Commit: 52066ee0922e460ff26bb1d05ffebd82d551babc
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=52066ee0922e460ff26bb1d05ffebd82d551babc

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Jan 29 20:38:04 2019 +0100

windowscodecs: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/windowscodecs/tests/converter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/tests/converter.c b/dlls/windowscodecs/tests/converter.c
index 8e0fb77..37b60fa 100644
--- a/dlls/windowscodecs/tests/converter.c
+++ b/dlls/windowscodecs/tests/converter.c
@@ -709,7 +709,7 @@ static void check_tiff_format(IStream *stream, const WICPixelFormatGUID *format)
     ok(hr == S_OK, "GetCount error %#x\n", hr);
     ok(count != 0, "wrong count %u\n", count);
 
-    for (i = 0; i < sizeof(tag)/sizeof(tag[0]); i++)
+    for (i = 0; i < ARRAY_SIZE(tag); i++)
     {
         PropVariantInit(&id);
         PropVariantInit(&value);




More information about the wine-cvs mailing list