diff options
| author | Subv <subv2112@gmail.com> | 2017-01-11 12:08:10 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2017-01-11 16:38:04 -0500 |
| commit | fbe090645c218b4fabe22be386672c2bed575956 (patch) | |
| tree | 1a7f133a595f7362a79e3f06d1e0bcb8a4668706 /src/core/hle/kernel/resource_limit.cpp | |
| parent | c77cafb0a77e702fb803680022f10161969582e8 (diff) | |
Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.
Diffstat (limited to 'src/core/hle/kernel/resource_limit.cpp')
| -rw-r--r-- | src/core/hle/kernel/resource_limit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp index 253ab70451..3f51bc5de6 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: |
