mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +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);
|
||||
|
||||
// overflow check
|
||||
_dbg_assert_(DVDINTERFACE, name_offset == name_table_size);
|
||||
// overflow check, compare the aligned name offset with the aligned name table size
|
||||
_assert_(Common::AlignUp(name_offset, 1ull << m_address_shift) == name_table_size);
|
||||
|
||||
// write FST size and location
|
||||
Write32((u32)(m_fst_address >> m_address_shift), 0x0424, &m_disk_header);
|
||||
|
Loading…
x
Reference in New Issue
Block a user