Commit a9c00c66 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

winefile: Allow paths with spaces.

parent aa026e06
......@@ -1323,9 +1323,17 @@ static ChildWnd* alloc_child_window(LPCWSTR path, LPITEMIDLIST pidl, HWND hwnd)
if (path)
{
lstrcpyW(child->path, path);
int pathlen = strlenW(path);
const WCHAR *npath = path;
_wsplitpath(path, drv, dir, name, ext);
if (path[0] == '"' && path[pathlen - 1] == '"')
{
npath++;
pathlen--;
}
lstrcpynW(child->path, npath, pathlen + 1);
_wsplitpath(child->path, drv, dir, name, ext);
}
lstrcpyW(child->filter_pattern, sAsterics);
......
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