Advertisement
Guest User

Untitled

a guest
Jun 21st, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement