From 803e91a8c44a4aadcb09c4b65095df1b44d73216 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 12 Jul 2019 15:44:59 -0700 Subject: [PATCH] creport: pass user break result directly --- stratosphere/creport/source/creport_crash_report.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stratosphere/creport/source/creport_crash_report.cpp b/stratosphere/creport/source/creport_crash_report.cpp index 4e3ddd737..6ad5b9112 100644 --- a/stratosphere/creport/source/creport_crash_report.cpp +++ b/stratosphere/creport/source/creport_crash_report.cpp @@ -251,13 +251,8 @@ namespace sts::creport { this->result = ResultCreportUserBreak; /* Try to parse out the user break result. */ if (GetRuntimeFirmwareVersion() >= FirmwareVersion_500) { - Result user_result = ResultSuccess; if (IsAddressReadable(this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result))) { - svcReadDebugProcessMemory(&user_result, this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result)); - } - /* Only copy over the user result if it gives us information (as by default nnSdk uses the success code, which is confusing). */ - if (R_FAILED(user_result)) { - this->result = user_result; + svcReadDebugProcessMemory(&this->result, this->debug_handle, d.info.exception.specific.user_break.address, sizeof(this->result)); } } break;