From 6b41a7e2e156ecd299594ea73888d4f629de822c Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 6 Apr 2019 15:02:48 -0700 Subject: [PATCH] fatal: unconditionally reassign cpu_ctx ptr --- stratosphere/fatal/source/fatal_throw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stratosphere/fatal/source/fatal_throw.cpp b/stratosphere/fatal/source/fatal_throw.cpp index ac44b81d9..b36396dd0 100644 --- a/stratosphere/fatal/source/fatal_throw.cpp +++ b/stratosphere/fatal/source/fatal_throw.cpp @@ -59,8 +59,9 @@ Result ThrowFatalImpl(u32 error, u64 pid, FatalType policy, FatalCpuContext *cpu } } else { std::memset(&ctx.cpu_ctx, 0, sizeof(ctx.cpu_ctx)); - cpu_ctx = &ctx.cpu_ctx; } + /* Reassign this unconditionally, for convenience. */ + cpu_ctx = &ctx.cpu_ctx; /* Get config. */ const FatalConfig *config = GetFatalConfig();