Marcus Meissner : ieframe: Use ARRAY_SIZE for GetLongPathNameW.

Alexandre Julliard julliard at winehq.org
Wed Feb 12 16:21:06 CST 2020


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Wed Feb 12 12:27:50 2020 +0100

ieframe: Use ARRAY_SIZE for GetLongPathNameW.

Signed-off-by: Marcus Meissner <meissner at suse.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c
index 7a8946b847..426fe18da0 100644
--- a/dlls/ieframe/tests/webbrowser.c
+++ b/dlls/ieframe/tests/webbrowser.c
@@ -3973,7 +3973,7 @@ static void test_FileProtocol(void)
     }
     CloseHandle(file);
 
-    GetLongPathNameW(file_path, file_path, sizeof(file_path));
+    GetLongPathNameW(file_path, file_path, ARRAY_SIZE(file_path));
     lstrcatW(file_url, file_path);
 
     test_ConnectionPoint(webbrowser, TRUE);




More information about the wine-cvs mailing list