explorer: Use the correct buffer size for the full path name.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-12 12:53:11 +02:00
parent dfeded6460
commit 130ec9dbf9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}