diff options
author | Lioncash <mathew1800@gmail.com> | 2018-04-21 01:35:02 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-04-21 01:41:45 +0200 |
commit | bec05db746edc88531bb8689f5143cf594c85836 (patch) | |
tree | 96a2dbba88ae53ee002fd44038501ad49b326dd4 /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #340 from mailwl/vi-update (diff) | |
download | yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar.gz yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar.bz2 yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar.lz yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar.xz yuzu-bec05db746edc88531bb8689f5143cf594c85836.tar.zst yuzu-bec05db746edc88531bb8689f5143cf594c85836.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 6204bcaaa..633740992 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -407,7 +407,7 @@ static ResultCode SetThreadPriority(Handle handle, u32 priority) { // Note: The kernel uses the current process's resource limit instead of // the one from the thread owner's resource limit. SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; - if (resource_limit->GetMaxResourceValue(ResourceTypes::PRIORITY) > priority) { + if (resource_limit->GetMaxResourceValue(ResourceType::Priority) > priority) { return ERR_NOT_AUTHORIZED; } @@ -541,7 +541,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V } SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; - if (resource_limit->GetMaxResourceValue(ResourceTypes::PRIORITY) > priority) { + if (resource_limit->GetMaxResourceValue(ResourceType::Priority) > priority) { return ERR_NOT_AUTHORIZED; } |