From d0659377e86429739584c36ce9173ecd9f502f47 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 12 Apr 2019 23:04:12 -0700 Subject: [PATCH] creport: speed up code region detection (closes #491) --- stratosphere/creport/source/creport_code_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/creport/source/creport_code_info.cpp b/stratosphere/creport/source/creport_code_info.cpp index b0a858855..f59aaeaf1 100644 --- a/stratosphere/creport/source/creport_code_info.cpp +++ b/stratosphere/creport/source/creport_code_info.cpp @@ -136,7 +136,7 @@ bool CodeList::TryFindCodeRegion(Handle debug_handle, u64 guess, u64 *address) { return true; } - guess -= 4; + guess = mi.addr - 4; } return false; }