+ Yet another protector solved

This commit is contained in:
Ladislav Zezula
2016-07-11 22:52:11 +02:00
parent 66a127ec50
commit 7597fe1702
3 changed files with 20 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ static DWORD FindHashIndex(TMPQArchive * ha, DWORD dwFileIndex)
pHashTableEnd = ha->pHashTable + ha->pHeader->dwHashTableSize;
for(pHash = ha->pHashTable; pHash < pHashTableEnd; pHash++)
{
if(pHash->dwBlockIndex == dwFileIndex)
if(MPQ_BLOCK_INDEX(pHash) == dwFileIndex)
{
// Duplicate hash entry found
if(dwFirstIndex != HASH_ENTRY_FREE)