Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.c

    r7efc517 r3f93cdbe  
    361361        uint16_t rscnt;
    362362        uint16_t sf;
    363         uint16_t ts;
     363        uint32_t ts;
    364364        unsigned rde;
    365365        unsigned rds;
     
    379379        sf = uint16_t_le2host(bs->sec_per_fat);
    380380        rde = uint16_t_le2host(bs->root_ent_max);
    381         ts = uint16_t_le2host(bs->totsec16);
     381        ts = (uint32_t) uint16_t_le2host(bs->totsec16);
     382        if (ts == 0)
     383                ts = uint32_t_le2host(bs->totsec32);
    382384
    383385        rds = (sizeof(fat_dentry_t) * rde) / bps;
Note: See TracChangeset for help on using the changeset viewer.