+ SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"

+ Fixed some bugs
This commit is contained in:
Zezula Ladislav
2017-11-08 15:31:45 +01:00
parent 0ff84d5aed
commit dae0b690f7
13 changed files with 279 additions and 218 deletions

View File

@@ -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
{