mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-13 16:16:31 +00:00
Fix major ISO9660 ISOFileRead bug and typo caused by hasty reformatting.
This commit is contained in:
parent
c2b4a4a1a0
commit
94eea62a5c
1 changed files with 2 additions and 1 deletions
|
@ -176,7 +176,8 @@ U8 *ISOFileRead(CDrive *drive, U8 *cur_dir, U8 *filename, I64 *_size, I64 *_attr
|
|||
buf = MAlloc(blk_cnt << BLK_SIZE_BITS + 1);
|
||||
c = de.clus;
|
||||
c = ClusBlkRead(drive, buf, c, blk_cnt);
|
||||
buf[de.size] = 0; //Terminate *_size = de.size;
|
||||
buf[de.size] = 0; //Terminate
|
||||
*_size = de.size;
|
||||
*_attr = FileAttr(de.name, de.attr);
|
||||
}
|
||||
DriveUnlock(drive);
|
||||
|
|
Loading…
Reference in a new issue