|
30 | 30 | #ifdef SAFE_MODE |
31 | 31 | #define RegDeleteTree2(x,y) 5 |
32 | 32 | #define RegDeleteValue2(x,y) 5 |
33 | | -#define DeleteFile2(x) (SetLastError(3), FALSE) |
| 33 | +#define DeleteFile3(x) (SetLastError(3), FALSE) |
34 | 34 | #define MoveFileEx2(x,y,z) (SetLastError(5), FALSE) |
35 | 35 | #define SHFileOperation2(x) 0x78 |
36 | | -#define RemoveDirectory2(x) FALSE |
| 36 | +#define RemoveDirectory3(x) FALSE |
37 | 37 | #else |
38 | 38 | #define RegDeleteTree2(x,y) RegDeleteTree(x,y) |
39 | 39 | #define RegDeleteValue2(x,y) RegDeleteValue(x,y) |
40 | | -#define DeleteFile2(x) DeleteFile(x) |
| 40 | +#define DeleteFile3(x) DeleteFile(x) |
41 | 41 | #define MoveFileEx2(x,y,z) MoveFileEx(x,y,z) |
42 | 42 | #define SHFileOperation2(x) SHFileOperation(x) |
43 | | -#define RemoveDirectory2(x) RemoveDirectory(x) |
| 43 | +#define RemoveDirectory3(x) RemoveDirectory(x) |
44 | 44 | #endif |
45 | 45 |
|
46 | 46 | // files to delete from the Open-Shell folder |
@@ -777,7 +777,7 @@ static bool DeleteFileEx( const wchar_t *fname, bool bAllowDelay ) |
777 | 777 | if (attribs&FILE_ATTRIBUTE_READONLY) |
778 | 778 | SetFileAttributes(fname,attribs&~FILE_ATTRIBUTE_READONLY); |
779 | 779 | LogMessage(-1,L"Deleting file %s",fname); |
780 | | - if (!DeleteFile2(fname)) |
| 780 | + if (!DeleteFile3(fname)) |
781 | 781 | { |
782 | 782 | int error=GetLastError(); |
783 | 783 | if (error==ERROR_ACCESS_DENIED && bAllowDelay) |
@@ -826,7 +826,7 @@ static void DeleteDirectoryEx( const wchar_t *path, bool bDelay ) |
826 | 826 | else |
827 | 827 | { |
828 | 828 | LogMessage(-1,L"Deleting directory %s",path); |
829 | | - if (!RemoveDirectory2(path)) |
| 829 | + if (!RemoveDirectory3(path)) |
830 | 830 | { |
831 | 831 | int error=GetLastError(); |
832 | 832 | bool bOldHasErrors=g_bHasErrors; |
|
0 commit comments