Eolite 2.49: fixed critical bug - rename file to the same name in different letters case occurs file deletion. Thanks e-andrew for report and sorry for the deleted file :)

git-svn-id: svn://kolibrios.org@5437 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-02-20 17:36:51 +00:00
parent 4606ae2802
commit 269e790e16

View File

@ -83,8 +83,8 @@
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
#define TITLE "Eolite File Manager v2.48" #define TITLE "Eolite File Manager v2.49"
#define ABOUT_TITLE "Eolite v2.48" #define ABOUT_TITLE "Eolite v2.49"
dword col_padding, col_selec, col_lpanel; dword col_padding, col_selec, col_lpanel;
int toolbar_buttons_x[7]={9,46,85,134,167,203}; int toolbar_buttons_x[7]={9,46,85,134,167,203};
@ -832,7 +832,7 @@ void ReName(byte rename)
strcpy(#temp, #path); strcpy(#temp, #path);
strcpy(#edit_name, #file_name); //save edit name to select it later strcpy(#edit_name, #file_name); //save edit name to select it later
strcat(#temp, #file_name); strcat(#temp, #file_name);
if (strcmp(#file_path,#temp)!=0) && (file_name) if (strcmpi(#file_path,#temp)!=0) && (file_name)
if (itdir) if (itdir)
{ {
if (del_rezult = DeleteFile(#file_path)) if (del_rezult = DeleteFile(#file_path))