aboutsummaryrefslogtreecommitdiff
path: root/src/SFileFindFile.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula-at-volny-dot-cz>2016-06-18 20:32:15 +0200
committerLadislav Zezula <zezula-at-volny-dot-cz>2016-06-18 20:32:15 +0200
commit303631f9d7f753dacffb1e038dd273dc204e1ea9 (patch)
tree5397acd7c5b8efe6e1a721f0177b534e38d9acd6 /src/SFileFindFile.cpp
parent47b6b6eb4addd82a89d6bcd8fa92f9c0a09a5781 (diff)
+ Updated for protectors fiddling with too big block table index
Diffstat (limited to 'src/SFileFindFile.cpp')
-rw-r--r--src/SFileFindFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileFindFile.cpp b/src/SFileFindFile.cpp
index 41f31e1..18bf4d5 100644
--- a/src/SFileFindFile.cpp
+++ b/src/SFileFindFile.cpp
@@ -299,7 +299,7 @@ static int DoMPQSearch_HashTable(TMPQSearch * hs, SFILE_FIND_DATA * lpFindFileDa
if(IsValidHashEntry(ha, pHash))
{
// Check if this file entry should be included in the search result
- if(DoMPQSearch_FileEntry(hs, lpFindFileData, ha, pHash, ha->pFileTable + pHash->dwBlockIndex))
+ if(DoMPQSearch_FileEntry(hs, lpFindFileData, ha, pHash, ha->pFileTable + MPQ_BLOCK_INDEX(pHash)))
return ERROR_SUCCESS;
}
}