SHARE
TWEET

Untitled

a guest Jun 21st, 2011 97 Never
  1. /* in update_short_entry, replace this: */
  2.         *sizeptr = htole32(size);
  3. /* by this */
  4.         if(size != -1)
  5.                 *sizeptr = htole32(size);
  6.  
  7.  
  8. void fat_set_volume_id(struct fat_file *file)
  9. {
  10.         update_short_entry(file, -1, FAT_ATTR_VOLUME_ID | FAT_ATTR_DIRECTORY)
  11. }
RAW Paste Data
Top