Alexandre Julliard : explorer: Use the correct buffer size for the full path name.
Alexandre Julliard
julliard at winehq.org
Tue Oct 12 16:12:47 CDT 2021
Module: wine
Branch: master
Commit: 130ec9dbf9e1ff70f6a6817dc325d24b7a3b568b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=130ec9dbf9e1ff70f6a6817dc325d24b7a3b568b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 12 12:53:11 2021 +0200
explorer: Use the correct buffer size for the full path name.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/explorer/explorer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c
index 43bd4ef13a8..cb0d63fb688 100644
--- a/programs/explorer/explorer.c
+++ b/programs/explorer/explorer.c
@@ -404,7 +404,7 @@ static void make_explorer_window(parameters_struct *params)
if (params->root[0])
{
size = GetFullPathNameW(params->root, 0, NULL, NULL);
- path = malloc(size);
+ path = malloc( size * sizeof(WCHAR) );
GetFullPathNameW(params->root, size, path, NULL);
}
More information about the wine-cvs
mailing list