explorer: Use the correct buffer size for the full path name.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dfeded6460
commit
130ec9dbf9
|
@ -404,7 +404,7 @@ static void make_explorer_window(parameters_struct *params)
|
||||||
if (params->root[0])
|
if (params->root[0])
|
||||||
{
|
{
|
||||||
size = GetFullPathNameW(params->root, 0, NULL, NULL);
|
size = GetFullPathNameW(params->root, 0, NULL, NULL);
|
||||||
path = malloc(size);
|
path = malloc( size * sizeof(WCHAR) );
|
||||||
GetFullPathNameW(params->root, size, path, NULL);
|
GetFullPathNameW(params->root, size, path, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue