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

Alexandre Julliard julliard at winehq.org
Mon Jun 11 13:10:49 CDT 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Thu Jun  7 23:44:34 2018 +0200

advpack/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/advpack/tests/advpack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index d595876..8d7c5eb 100644
--- a/dlls/advpack/tests/advpack.c
+++ b/dlls/advpack/tests/advpack.c
@@ -134,8 +134,8 @@ static void delnode_test(void)
 
     /* Native DelNode apparently does not support relative paths, so we use
        absolute paths for testing */
-    currDirLen = GetCurrentDirectoryA(sizeof(currDir) / sizeof(CHAR), currDir);
-    assert(currDirLen > 0 && currDirLen < sizeof(currDir) / sizeof(CHAR));
+    currDirLen = GetCurrentDirectoryA(ARRAY_SIZE(currDir), currDir);
+    assert(currDirLen > 0 && currDirLen < ARRAY_SIZE(currDir));
 
     if(currDir[currDirLen - 1] == '\\')
         currDir[--currDirLen] = 0;




More information about the wine-cvs mailing list