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

Alexandre Julliard julliard at winehq.org
Mon Apr 29 16:08:50 CDT 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Mon Apr 29 21:13:22 2019 +0200

wintrust: Use the ARRAY_SIZE() macro.

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/wintrust/tests/softpub.c b/dlls/wintrust/tests/softpub.c
index 914f04d..2a4f4f4 100644
--- a/dlls/wintrust/tests/softpub.c
+++ b/dlls/wintrust/tests/softpub.c
@@ -1211,7 +1211,7 @@ static void test_wintrust_digest(void)
     BOOL ret;
     int i, j;
 
-    for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++)
+    for (i = 0; i < ARRAY_SIZE(tests); i++)
     {
         file = create_temp_file(pathW);
         ok(file != INVALID_HANDLE_VALUE, "failed to create temporary file\n");




More information about the wine-cvs mailing list