From 20a101806e939d1231d5b1e51d133f3d99f585bc Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 17 Oct 2016 14:39:22 +0000 Subject: [PATCH] Eolite: fix sorting in "/" git-svn-id: svn://kolibrios.org@6604 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 84607cfcc4..c1fe4542e0 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -575,7 +575,7 @@ void DrawStatusBar() char status_bar_str[80]; int go_up_folder_exists=0; if (!show_status_bar) return; - if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1;; + if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1; DrawBar(1, Form.cheight - status_bar_h-1, Form.cwidth-2, status_bar_h, system.color.work); sprintf(#status_bar_str, STATUS_STR, files.count-go_up_folder_exists, count_dir-go_up_folder_exists, files.count-count_dir, selected_count); WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); @@ -785,9 +785,10 @@ inline Sorting() { dword k=0, l=1; dword file_off; - if (!strncmp(#path,"/",2)) //do not sort + if (!strcmp(#path,"/")) //do not sort root folder { for(k=1;k=0; j--, file_off-=304;) //files | folders