Michael Stefaniuc : gdiplus/tests: Use the ARRAY_SIZE() macro.

Alexandre Julliard julliard at winehq.org
Thu Sep 24 15:49:04 CDT 2020


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Sep 21 22:52:29 2020 +0200

gdiplus/tests: Use the ARRAY_SIZE() macro.

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

---

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

diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index b762f7c45f..af90152aa2 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -335,7 +335,7 @@ static void test_logfont(void)
         memset(&lfa, 0, sizeof(lfa));
         lstrcpyA(lfa.lfFaceName, "Times New Roman");
 
-        for (i = 0; i < sizeof(test_sizes)/sizeof(test_sizes[0]); ++i)
+        for (i = 0; i < ARRAY_SIZE(test_sizes); ++i)
         {
             lfa.lfHeight = test_sizes[i].input;
 




More information about the wine-cvs mailing list