diff options
author | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-11-08 15:31:45 +0100 |
---|---|---|
committer | Zezula Ladislav <ladislav.zezula@avast.com> | 2017-11-08 15:31:45 +0100 |
commit | dae0b690f796bd421ab69a0219cb1b46095b9f27 (patch) | |
tree | 3bb720145fdfe104b8ddecfe1e46f3419c38e8c0 /src/SBaseFileTable.cpp | |
parent | 0ff84d5aed22bb5e3246cb0561592826afeb5f4a (diff) |
+ SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"
+ Fixed some bugs
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r-- | src/SBaseFileTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index 39ba125..1cb469e 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -891,8 +891,8 @@ TMPQBlock * TranslateBlockTable( TFileEntry * pFileEntry = ha->pFileTable;
TMPQBlock * pBlockTable;
TMPQBlock * pBlock;
- DWORD dwBlockTableSize = ha->pHeader->dwBlockTableSize;
DWORD NeedHiBlockTable = 0;
+ DWORD dwBlockTableSize = ha->pHeader->dwBlockTableSize;
// Allocate copy of the hash table
pBlockTable = pBlock = STORM_ALLOC(TMPQBlock, dwBlockTableSize);
@@ -2617,7 +2617,7 @@ int DefragmentFileTable(TMPQArchive * ha) pTarget++;
// Update the block table size
- dwBlockTableSize = (DWORD)(pSource - ha->pFileTable) + 1;
+ dwBlockTableSize = (DWORD)(pTarget - ha->pFileTable);
}
else
{
|