total = 0;
while ( !feof(f_fsc) ){
if ( fread(®, sizeof(EMUFS_FSC), 1, f_fsc) != 1) continue;
- total += reg.freespace;
+ if ( reg.freespace > 0 )
+ total += reg.freespace;
}
fclose(f_fsc);
return total;
strcat(name, EMUFS_FSC_EXT);
return emufs_common_get_file_size(name, err);
}
-