Commit 130ec9db authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent dfeded64
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment