summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp4
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) {
407 // Note: The kernel uses the current process's resource limit instead of 407 // Note: The kernel uses the current process's resource limit instead of
408 // the one from the thread owner's resource limit. 408 // the one from the thread owner's resource limit.
409 SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; 409 SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit;
410 if (resource_limit->GetMaxResourceValue(ResourceTypes::PRIORITY) > priority) { 410 if (resource_limit->GetMaxResourceValue(ResourceType::Priority) > priority) {
411 return ERR_NOT_AUTHORIZED; 411 return ERR_NOT_AUTHORIZED;
412 } 412 }
413 413
@@ -541,7 +541,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
541 } 541 }
542 542
543 SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; 543 SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit;
544 if (resource_limit->GetMaxResourceValue(ResourceTypes::PRIORITY) > priority) { 544 if (resource_limit->GetMaxResourceValue(ResourceType::Priority) > priority) {
545 return ERR_NOT_AUTHORIZED; 545 return ERR_NOT_AUTHORIZED;
546 } 546 }
547 547