cmm: proper testbit

git-svn-id: svn://kolibrios.org@8944 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2021-06-25 13:21:42 +00:00
parent f39a809e66
commit ee9c0f97fc
8 changed files with 17 additions and 24 deletions

View File

@@ -82,7 +82,7 @@ void SetPropertiesDir(dword way)
strcpy(cur_file, way);
chrcat(cur_file, '/');
strcat(cur_file, filename);
if ( TestBit(ESDWORD[filename-40], 4) )
if ( ESDWORD[filename-40] & ATR_FOLDER )
{
SetPropertiesDir(cur_file);
}
@@ -158,7 +158,7 @@ void GetSizeMoreFiles(dword way)
if (getElementSelectedFlag(i) == true)
{
sprintf(#cur_file,"%s/%s",way,items.get(i)*304+buf+72);
if (TestBit(ESDWORD[items.get(i)*304+buf+32], 4) )
if (ESDWORD[items.get(i)*304+buf+32] & ATR_FOLDER )
{
more_files_count.calculate_loop(#cur_file);
more_files_count.folders++;