[ADVPACK_WINETEST] Sync with Wine Staging 3.17. CORE-15127
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 30 Sep 2018 23:26:09 +0000 (00:26 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 30 Sep 2018 23:26:09 +0000 (00:26 +0100)
modules/rostests/winetests/advpack/advpack.c

index d595876..8d7c5eb 100644 (file)
@@ -134,8 +134,8 @@ static void delnode_test(void)
 
     /* Native DelNode apparently does not support relative paths, so we use
        absolute paths for testing */
 
     /* 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;
 
     if(currDir[currDirLen - 1] == '\\')
         currDir[--currDirLen] = 0;