Marcus Meissner : shell32: Use characters as arguments to GetTempPathW and GetLongPathNameW.

Alexandre Julliard julliard at winehq.org
Tue Jun 26 15:43:10 CDT 2018


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Jun 26 07:43:14 2018 +0200

shell32: Use characters as arguments to GetTempPathW and GetLongPathNameW.

Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/shlfolder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index 6460fd9..bb303f6 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -244,8 +244,8 @@ todo_wine_if(parse_tests[i].todo)
     CoTaskMemFree(pidl);
 
     /* Relative paths are interpreted relative to the desktop. */
-    GetTempPathW(sizeof(buffer), buffer);
-    GetLongPathNameW(buffer, buffer, sizeof(buffer));
+    GetTempPathW(ARRAY_SIZE(buffer), buffer);
+    GetLongPathNameW(buffer, buffer, ARRAY_SIZE(buffer));
     SetCurrentDirectoryW(buffer);
     CreateDirectoryW(testdirW, NULL);
 




More information about the wine-cvs mailing list