mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 22:57:20 +01:00
+ SFileAddListFile and SFileCompactArchive now take "const TCHAR *" instead of "const char *"
+ Fixed some bugs
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user