https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d1060f20d659c090c9039…
commit d1060f20d659c090c903986bb5e62c375c777456
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Oct 1 00:26:09 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Oct 1 00:26:09 2018 +0100
[ADVPACK_WINETEST] Sync with Wine Staging 3.17. CORE-15127
---
modules/rostests/winetests/advpack/advpack.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/advpack/advpack.c
b/modules/rostests/winetests/advpack/advpack.c
index d5958769ab..8d7c5ebb48 100644
--- a/modules/rostests/winetests/advpack/advpack.c
+++ b/modules/rostests/winetests/advpack/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;