/programs/cmm/eolite/include/properties.h |
---|
57,7 → 57,7 |
{ |
dword dirbuf, fcount, i, filename; |
dword cur_file; |
if (dir_exists(way)) |
if (isdir(way)) |
{ |
cur_file = malloc(4096); |
GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |
105,7 → 105,7 |
SetFileInfo(cur_file, #file_info_general); |
if (prop==2) |
{ |
if (dir_exists(cur_file)) |
if (isdir(cur_file)) |
{ |
SetPropertiesDir(cur_file); |
} |
155,7 → 155,7 |
{ |
dword dirbuf, fcount, i, filename; |
dword cur_file; |
if (dir_exists(way)) |
if (isdir(way)) |
{ |
cur_file = malloc(4096); |
// In the process of recursive descent, memory must be allocated dynamically, |
/programs/cmm/eolite/include/fs.h |
---|
5,7 → 5,7 |
{ |
dword dirbuf, fcount, i, filename; |
dword cur_file; |
if (dir_exists(way)) |
if (isdir(way)) |
{ |
cur_file = malloc(4096); |
// In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. |
/programs/cmm/eolite/Eolite.c |
---|
857,7 → 857,7 |
dword dirbuf, fcount, i, filename; |
int error; |
char del_from[4096]; |
if (dir_exists(way)) |
if (isdir(way)) |
{ |
if (error = GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL)) del_error = error; |
for (i=0; i<fcount; i++) |