popsdeco

iso_tool ciso.c bug

Dec 6th, 2011
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   max_sector = header.total_bytes / header.block_size - 1;
  2. -  start_sec = pos / SECTOR_SIZE;
  3. -  end_sec = (pos + size - 1) / SECTOR_SIZE;
  4. +  start_sec = pos / header.block_size;
  5. +  end_sec = (pos + size - 1) / header.block_size;
  6.   sector_num = start_sec;
  7.  
  8.  
RAW Paste Data