From 81bf8c577a3ba090cb9f16ec5bb23018a9604199 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 19 Aug 2021 07:34:08 -0700 Subject: [PATCH] kern: fix check for thread-is-current in KDebugBase::SetThreadContext --- libraries/libmesosphere/source/kern_k_debug_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_debug_base.cpp b/libraries/libmesosphere/source/kern_k_debug_base.cpp index dafc018c4..a48921ad8 100644 --- a/libraries/libmesosphere/source/kern_k_debug_base.cpp +++ b/libraries/libmesosphere/source/kern_k_debug_base.cpp @@ -469,8 +469,8 @@ namespace ams::kern { for (auto i = 0; i < static_cast(cpu::NumCores); ++i) { if (thread == Kernel::GetScheduler(i).GetSchedulerCurrentThread()) { current = true; + break; } - break; } /* If the thread is current, retry until it isn't. */