aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-08-19 10:39:35 -0400
committerGitHub <noreply@github.com>2021-08-19 10:39:35 -0400
commita71b65feb729721647463fca6fa315b24e2b86ca (patch)
treec5e068b9484366c66ea02ee5297d3ab2a8ad0717 /src
parent7a90ad5238bde5c677e9a1b328b4570f3c12621f (diff)
parent190e12a07208444f4622f2aeb915600b36780ea8 (diff)
Merge pull request #6884 from v1993/patch-1
Fix check is thread current in GetThreadContext
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index a90b291daf..890c52198f 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1078,8 +1078,8 @@ static ResultCode GetThreadContext(Core::System& system, VAddr out_context, Hand
for (auto i = 0; i < static_cast<s32>(Core::Hardware::NUM_CPU_CORES); ++i) {
if (thread.GetPointerUnsafe() == kernel.Scheduler(i).GetCurrentThread()) {
current = true;
+ break;
}
- break;
}
// If the thread is current, retry until it isn't.