mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
VolumeDirectory: Correctly check name_offset alignment in assert
This commit is contained in:
parent
ec9579ebcd
commit
108d59b131
@ -373,8 +373,8 @@ void CVolumeDirectory::BuildFST()
|
|||||||
|
|
||||||
WriteDirectory(rootEntry, &fst_offset, &name_offset, ¤t_data_address, root_offset);
|
WriteDirectory(rootEntry, &fst_offset, &name_offset, ¤t_data_address, root_offset);
|
||||||
|
|
||||||
// overflow check
|
// overflow check, compare the aligned name offset with the aligned name table size
|
||||||
_dbg_assert_(DVDINTERFACE, name_offset == name_table_size);
|
_assert_(Common::AlignUp(name_offset, 1ull << m_address_shift) == name_table_size);
|
||||||
|
|
||||||
// write FST size and location
|
// write FST size and location
|
||||||
Write32((u32)(m_fst_address >> m_address_shift), 0x0424, &m_disk_header);
|
Write32((u32)(m_fst_address >> m_address_shift), 0x0424, &m_disk_header);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user