forked from KolibriOS/kolibrios
Eolite: fix /kolibrios/ drive appearance
git-svn-id: svn://kolibrios.org@5734 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2732d2f84a
commit
cb7d6f9f48
@ -78,6 +78,8 @@ void GetSystemDiscs()
|
|||||||
{
|
{
|
||||||
char dev_name[10], sys_discs[10];
|
char dev_name[10], sys_discs[10];
|
||||||
int i1, j1, dev_num, dev_disc_num,l;
|
int i1, j1, dev_num, dev_disc_num,l;
|
||||||
|
dword temp_file_count, tempbuf;
|
||||||
|
|
||||||
disc_num=0;
|
disc_num=0;
|
||||||
if (devbuf) free(devbuf);
|
if (devbuf) free(devbuf);
|
||||||
devbuf = malloc(10000); //áóôåð ãäå-òî íà 10 äåâàéñîâ â ëåâîé ïàíåëè
|
devbuf = malloc(10000); //áóôåð ãäå-òî íà 10 äåâàéñîâ â ëåâîé ïàíåëè
|
||||||
@ -97,13 +99,15 @@ void GetSystemDiscs()
|
|||||||
}
|
}
|
||||||
if (!strncmp(#sys_discs, "/rd/1/",6))
|
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);
|
strncpy(#disk_list[disc_num].Item, "/kolibrios/",11);
|
||||||
kolibrios_drive = true;
|
kolibrios_drive = true;
|
||||||
disc_num++;
|
disc_num++;
|
||||||
}
|
}
|
||||||
else kolibrios_drive = false;
|
else kolibrios_drive = false;
|
||||||
|
free(tempbuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user