Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 21st, 2011  |  syntax: C  |  size: 0.25 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data