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

Alexandre Julliard julliard at winehq.org
Fri May 24 15:46:37 CDT 2019


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Fri May 24 19:53:47 2019 +0200

kernel32/tests: Use the ARRAY_SIZE() macro.

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

---

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

diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index 8f55083..f15cc09 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -1922,7 +1922,7 @@ static void test_SearchPathA(void)
     ret = GetCurrentDirectoryA(MAX_PATH, curdirA);
     ok(ret, "failed to obtain working directory.\n");
     sprintf(pathA, "%s\\%s", tmpdirA, kernel32A);
-    ret = SearchPathA(NULL, kernel32A, NULL, sizeof(path2A)/sizeof(CHAR), path2A, NULL);
+    ret = SearchPathA(NULL, kernel32A, NULL, ARRAY_SIZE(path2A), path2A, NULL);
     ok(ret && ret == strlen(path2A), "got %d\n", ret);
     bret = CopyFileA(path2A, pathA, FALSE);
     ok(bret != 0, "failed to copy test executable to temp directory, %u\n", GetLastError());




More information about the wine-cvs mailing list