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

This commit is contained in:
Alexandre Julliard 2006-11-14 12:00:23 +01:00
parent bbe4550b46
commit dc0c3677cd
1 changed files with 2 additions and 5 deletions

View File

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