aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseFileTable.cpp
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-05-04 10:23:46 +0200
committerunknown <E:\Ladik\Mail>2015-05-04 10:23:46 +0200
commit9c0f0db9938f879652ddda48ff64ec87479f1ce0 (patch)
tree98c2065bed2cae917021fe08e5f848778361fb4c /src/SBaseFileTable.cpp
parentb7ad3dd76776f15080fc98014ae0a1819af80baf (diff)
+ Fixed bug in defragmenting block table
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r--src/SBaseFileTable.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp
index 9e6d4b6..d7e0702 100644
--- a/src/SBaseFileTable.cpp
+++ b/src/SBaseFileTable.cpp
@@ -785,11 +785,14 @@ static int BuildFileTableFromBlockTable(
// Fix the pointer in the hash entry
pHash->dwBlockIndex = dwNewIndex;
+
+ // Dump the relocation entry
+ printf("Relocating hash entry %08X-%08X: %08X -> %08X\n", pHash->dwName1, pHash->dwName2, dwBlockIndex, dwNewIndex);
}
// Get the pointer to the file entry and the block entry
pFileEntry = ha->pFileTable + dwNewIndex;
- pBlock = pBlockTable + dwNewIndex;
+ pBlock = pBlockTable + dwBlockIndex;
// ByteOffset is only valid if file size is not zero
pFileEntry->ByteOffset = pBlock->dwFilePos;