From 00e3d874e31e1b0b232e3f838194635755dfe462 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 12 Jul 2019 16:11:32 -0700 Subject: [PATCH] creport: fix dangling reference to user_result --- stratosphere/creport/source/creport_crash_report.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/creport/source/creport_crash_report.cpp b/stratosphere/creport/source/creport_crash_report.cpp index 6ad5b9112..931f77c04 100644 --- a/stratosphere/creport/source/creport_crash_report.cpp +++ b/stratosphere/creport/source/creport_crash_report.cpp @@ -251,7 +251,7 @@ namespace sts::creport { this->result = ResultCreportUserBreak; /* Try to parse out the user break result. */ if (GetRuntimeFirmwareVersion() >= FirmwareVersion_500) { - if (IsAddressReadable(this->debug_handle, d.info.exception.specific.user_break.address, sizeof(user_result))) { + if (IsAddressReadable(this->debug_handle, d.info.exception.specific.user_break.address, sizeof(this->result))) { svcReadDebugProcessMemory(&this->result, this->debug_handle, d.info.exception.specific.user_break.address, sizeof(this->result)); } }