- Fix for alignment of 0-length files when volume directory is created from directory on disk
Updating constant value representation Explicitly state data type in std:max usage
This commit is contained in:
parent
008200db4d
commit
d4c2ca46a4
|
@ -459,7 +459,7 @@ void CVolumeDirectory::WriteEntry(const File::FSTEntry& entry, u32& fstOffset, u
|
|||
m_virtualDisk.insert(make_pair(dataOffset, entry.physicalName));
|
||||
|
||||
// 4 byte aligned
|
||||
dataOffset = ROUND_UP(dataOffset + entry.size, 0x8000ull);
|
||||
dataOffset = ROUND_UP(dataOffset + std::max<u64>(entry.size, 1ull), 0x8000ull);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue