Commit dc0c3677 authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Don't use the short path name to delete files in SHFileOperation.

parent bbe4550b
......@@ -207,12 +207,9 @@ BOOL SHELL_DeleteDirectoryW(HWND hwnd, LPCWSTR pszDir, BOOL bShowUI)
{
do
{
LPWSTR lp = wfd.cAlternateFileName;
if (!lp[0])
lp = wfd.cFileName;
if (IsDotDir(lp))
if (IsDotDir(wfd.cFileName))
continue;
PathCombineW(szTemp, pszDir, lp);
PathCombineW(szTemp, pszDir, wfd.cFileName);
if (FILE_ATTRIBUTE_DIRECTORY & wfd.dwFileAttributes)
ret = SHELL_DeleteDirectoryW(hwnd, szTemp, FALSE);
else
......
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