From cb7d6f9f48c2198491440a6746d8d125029a72e6 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 17 Aug 2015 13:45:24 +0000 Subject: [PATCH] Eolite: fix /kolibrios/ drive appearance git-svn-id: svn://kolibrios.org@5734 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/include/left_panel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/programs/cmm/eolite/include/left_panel.h b/programs/cmm/eolite/include/left_panel.h index 585fc51da0..e710681f54 100644 --- a/programs/cmm/eolite/include/left_panel.h +++ b/programs/cmm/eolite/include/left_panel.h @@ -78,6 +78,8 @@ void GetSystemDiscs() { char dev_name[10], sys_discs[10]; int i1, j1, dev_num, dev_disc_num,l; + dword temp_file_count, tempbuf; + disc_num=0; if (devbuf) free(devbuf); devbuf = malloc(10000); //буфер где-то на 10 девайсов в левой панели @@ -97,13 +99,15 @@ void GetSystemDiscs() } if (!strncmp(#sys_discs, "/rd/1/",6)) { - if (isdir("/kolibrios")) + GetDir(#tempbuf, #temp_file_count, "/kolibrios/", DIRS_ONLYREAL); + if (temp_file_count) { strncpy(#disk_list[disc_num].Item, "/kolibrios/",11); kolibrios_drive = true; disc_num++; } else kolibrios_drive = false; + free(tempbuf); } } }