mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
fatal: unconditionally reassign cpu_ctx ptr
This commit is contained in:
parent
aed472775c
commit
6b41a7e2e1
1 changed files with 2 additions and 1 deletions
|
@ -59,8 +59,9 @@ Result ThrowFatalImpl(u32 error, u64 pid, FatalType policy, FatalCpuContext *cpu
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::memset(&ctx.cpu_ctx, 0, sizeof(ctx.cpu_ctx));
|
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. */
|
/* Get config. */
|
||||||
const FatalConfig *config = GetFatalConfig();
|
const FatalConfig *config = GetFatalConfig();
|
||||||
|
|
Loading…
Reference in a new issue