Do not use 32-bit masks on 64-bit offsets.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@651 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
35d830924d
commit
bcba16bb20
|
@ -302,7 +302,7 @@ void CVolumeDirectory::BuildFST()
|
|||
m_FSTData = new u8[(u32)m_fstSize];
|
||||
|
||||
// 4 byte aligned start of data on disk
|
||||
m_dataStartAddress = (FST_ADDRESS + m_fstSize + 3) & 0xfffffffc;
|
||||
m_dataStartAddress = (FST_ADDRESS + m_fstSize + 3) & ~3;
|
||||
u64 curDataAddress = m_dataStartAddress;
|
||||
|
||||
u32 fstOffset = 0; // offset within FST data
|
||||
|
@ -421,7 +421,7 @@ void CVolumeDirectory::WriteEntry(const File::FSTEntry& entry, u32& fstOffset, u
|
|||
m_virtualDisk.insert(make_pair(dataOffset, entry.physicalName));
|
||||
|
||||
// 4 byte aligned
|
||||
dataOffset = (dataOffset + entry.size + 3) & 0xfffffffc;
|
||||
dataOffset = (dataOffset + entry.size + 3) & ~3;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue