mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
Give an error message when trying to DEL a file that doesn't exist (Bug 4244). Patch by Victor Martinez <vicmarcal at hotmail.com>.
svn path=/trunk/; revision=39944
This commit is contained in:
parent
947cbd765b
commit
db0b0ba158
1 changed files with 37 additions and 38 deletions
|
@ -223,7 +223,6 @@ DeleteFiles(LPTSTR FileName, DWORD* dwFlags, DWORD dwAttrFlags)
|
||||||
if(dwAttrFlags & ATTR_N_READ_ONLY && (f.dwFileAttributes & FILE_ATTRIBUTE_READONLY))
|
if(dwAttrFlags & ATTR_N_READ_ONLY && (f.dwFileAttributes & FILE_ATTRIBUTE_READONLY))
|
||||||
bExclusion = TRUE;
|
bExclusion = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(bExclusion)
|
if(bExclusion)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -277,10 +276,10 @@ DeleteFiles(LPTSTR FileName, DWORD* dwFlags, DWORD dwAttrFlags)
|
||||||
while (FindNextFile (hFile, &f));
|
while (FindNextFile (hFile, &f));
|
||||||
FindClose (hFile);
|
FindClose (hFile);
|
||||||
}
|
}
|
||||||
|
else error_sfile_not_found(szFullPath);
|
||||||
return dwFiles;
|
return dwFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static DWORD
|
static DWORD
|
||||||
ProcessDirectory(LPTSTR FileName, DWORD* dwFlags, DWORD dwAttrFlags)
|
ProcessDirectory(LPTSTR FileName, DWORD* dwFlags, DWORD dwAttrFlags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue