mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
loader: fix failure-to-early-return in launch record management
This commit is contained in:
parent
e4e278bb3d
commit
dbe8add4f4
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ namespace ams::ldr {
|
|||
for (size_t i = 0; i < MaxBootPrograms; ++i) {
|
||||
if (g_launched_boot_programs[i] == ncm::InvalidProgramId) {
|
||||
g_launched_boot_programs[i] = program_id;
|
||||
return;
|
||||
}
|
||||
}
|
||||
AMS_ABORT("Too many boot programs");
|
||||
|
|
Loading…
Reference in a new issue