PPCAnalyst: Fix off by one instruction

This commit is contained in:
Sepalani 2017-05-07 04:34:02 +01:00
parent 93ba6aa9f2
commit 40c243df28
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ bool AnalyzeFunction(u32 startAddr, Symbol& func, int max_size)
{
func.address = startAddr;
func.analyzed = true;
func.hash = HashSignatureDB::ComputeCodeChecksum(startAddr, addr);
func.size -= 4;
func.hash = HashSignatureDB::ComputeCodeChecksum(startAddr, addr - 4);
if (numInternalBranches == 0)
func.flags |= FFLAG_STRAIGHT;
return true;