[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 Gliniak
parent 9fbc85796a
commit 1ebd47dc0f
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?
if (((header_.header_size + 0xFFF) & 0xB000) == 0xB000 ||
(header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
if ((header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
num_tables++;
}