[VFS] Oops, fix wrong BlockToOffset result for non-CON packages

This commit is contained in:
emoose 2020-01-05 20:33:09 +00:00 committed by illusion
parent ff5246facb
commit a2037b15bc
1 changed files with 1 additions and 2 deletions

View File

@ -611,8 +611,7 @@ size_t StfsContainerDevice::BlockToOffsetSTFS(uint64_t block_index) {
} }
uint32_t num_tables = 1; // num hashtables per block? or maybe backingblocks? uint32_t num_tables = 1; // num hashtables per block? or maybe backingblocks?
if (((header_.header_size + 0xFFF) & 0xB000) == 0xB000 || if ((header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
(header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
num_tables++; num_tables++;
} }