- 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:
revel8n 2015-03-31 18:31:07 -05:00
parent 008200db4d
commit d4c2ca46a4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}