Michael Stefaniuc : shlwapi/tests: Pass the correct buffer size to PathUnExpandEnvStringsW().

Alexandre Julliard julliard at winehq.org
Wed Jun 27 16:04:36 CDT 2018


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

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Jun 26 22:44:26 2018 +0200

shlwapi/tests: Pass the correct buffer size to PathUnExpandEnvStringsW().

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

---

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

diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c
index d25620b..4a6fbd9 100644
--- a/dlls/shlwapi/tests/path.c
+++ b/dlls/shlwapi/tests/path.c
@@ -1595,7 +1595,7 @@ static void test_PathUnExpandEnvStrings(void)
     buffW[0] = 0;
     lstrcpyW(pathW, sysdrvW);
     lstrcatW(pathW, sysdrvW);
-    ret = pPathUnExpandEnvStringsW(pathW, buffW, sizeof(buff)/sizeof(WCHAR));
+    ret = pPathUnExpandEnvStringsW(pathW, buffW, ARRAY_SIZE(buffW));
     ok(ret, "got %d\n", ret);
     /* expected string */
     lstrcpyW(pathW, sysdriveW);




More information about the wine-cvs mailing list