Commit 9cd82ad7 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent f604ffaa
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment