Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.

This commit is contained in:
Subv
2017-01-11 12:08:10 -05:00
parent 5ddc2e09b1
commit f2f2572fed
3 changed files with 18 additions and 18 deletions

View File

@ -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: