From dbe8add4f45ccbb2269f149b136660c0859cefbd Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 18 Jan 2021 06:20:13 -0800 Subject: [PATCH] loader: fix failure-to-early-return in launch record management --- stratosphere/loader/source/ldr_launch_record.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stratosphere/loader/source/ldr_launch_record.cpp b/stratosphere/loader/source/ldr_launch_record.cpp index fd0b35cbd..63250fb8d 100644 --- a/stratosphere/loader/source/ldr_launch_record.cpp +++ b/stratosphere/loader/source/ldr_launch_record.cpp @@ -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");