Hash entry verification when the file table does not exist yet
| 581 | |
| 582 | // Hash entry verification when the file table does not exist yet |
| 583 | bool IsValidHashEntry(TMPQArchive * ha, TMPQHash * pHash) |
| 584 | { |
| 585 | TFileEntry * pFileEntry = ha->pFileTable + MPQ_BLOCK_INDEX(pHash); |
| 586 | |
| 587 | return ((MPQ_BLOCK_INDEX(pHash) < ha->dwFileTableSize) && (pFileEntry->dwFlags & MPQ_FILE_EXISTS)) ? true : false; |
| 588 | } |
| 589 | |
| 590 | // Hash entry verification when the file table does not exist yet |
| 591 | static bool IsValidHashEntry1(TMPQArchive * ha, TMPQHash * pHash, TMPQBlock * pBlockTable) |
no outgoing calls
no test coverage detected