mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-01-19 01:34:10 +01:00
loader: fix failure-to-early-return in launch record management
This commit is contained in:
parent
ac2c713ee0
commit
15b225f919
@ -44,6 +44,7 @@ namespace ams::ldr {
|
|||||||
for (size_t i = 0; i < MaxBootPrograms; ++i) {
|
for (size_t i = 0; i < MaxBootPrograms; ++i) {
|
||||||
if (g_launched_boot_programs[i] == ncm::InvalidProgramId) {
|
if (g_launched_boot_programs[i] == ncm::InvalidProgramId) {
|
||||||
g_launched_boot_programs[i] = program_id;
|
g_launched_boot_programs[i] = program_id;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AMS_ABORT("Too many boot programs");
|
AMS_ABORT("Too many boot programs");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user