shell32: Don't use the short path name to delete files in SHFileOperation.
This commit is contained in:
parent
bbe4550b46
commit
dc0c3677cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue