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 | f2f2572fed075d2dca5ae7abcea451ac5eb382ec (patch) | |
| tree | 1a7f133a595f7362a79e3f06d1e0bcb8a4668706 /src/core/hle/kernel/resource_limit.cpp | |
| parent | 5ddc2e09b1a1b4a2b876d93dba1ccc4c56a24207 (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 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: |
