winefile: Allow paths with spaces.

This commit is contained in:
Bruno Jesus 2014-12-13 13:59:42 -02:00 committed by Alexandre Julliard
parent aa026e0614
commit a9c00c66d0
1 changed files with 10 additions and 2 deletions

View File

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