mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 22:57:20 +01:00
+ Version 9.00 released
This commit is contained in:
@@ -270,6 +270,10 @@ static ULONGLONG DetermineArchiveSize_V1_V2(
|
||||
if(pHeader->dwBlockTablePos + (pHeader->dwBlockTableSize * sizeof(TMPQBlock)) == pHeader->dwArchiveSize)
|
||||
return pHeader->dwArchiveSize;
|
||||
|
||||
// If both block table and archive size seem to be out of the file size
|
||||
if(pHeader->dwBlockTablePos > FileSize && pHeader->dwArchiveSize > FileSize)
|
||||
return pHeader->dwArchiveSize;
|
||||
|
||||
// If the archive size in the header is less than real file size
|
||||
dwArchiveSize32 = (DWORD)(FileSize - MpqOffset);
|
||||
if(pHeader->dwArchiveSize <= dwArchiveSize32)
|
||||
|
||||
Reference in New Issue
Block a user