From f2f2572fed075d2dca5ae7abcea451ac5eb382ec Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 11 Jan 2017 12:08:10 -0500 Subject: Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority. --- src/core/hle/kernel/resource_limit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/hle/kernel/resource_limit.cpp') diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp index 253ab7045..3f51bc5de 100644 --- a/src/core/hle/kernel/resource_limit.cpp +++ b/src/core/hle/kernel/resource_limit.cpp @@ -62,6 +62,8 @@ s32 ResourceLimit::GetCurrentResourceValue(u32 resource) const { s32 ResourceLimit::GetMaxResourceValue(u32 resource) const { switch (resource) { + case PRIORITY: + return max_priority; case COMMIT: return max_commit; case THREAD: -- cgit v1.2.3