From 40c243df287e46f596eecbe58b6492f2db9b0cbe Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sun, 7 May 2017 04:34:02 +0100 Subject: [PATCH] PPCAnalyst: Fix off by one instruction --- Source/Core/Core/PowerPC/PPCAnalyst.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 1d39d308c3..90288cdbd9 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -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;