summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-24 20:10:30 +0200
committerLioncash <mathew1800@gmail.com>2018-10-24 20:11:11 +0200
commitfcf8f53a631fe5f15f2b456bc34331de8e67a64b (patch)
treeaf886e3b663feeca60702e8d96ce9ca3ed502d39 /src/core/hle/kernel
parentkernel/svc: Move and correct returned error code for invalid thread priorities in SetThreadPriority() (diff)
downloadyuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.gz
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.bz2
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.lz
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.xz
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.zst
yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index e7e4c59b6..a5302d924 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -746,7 +746,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
auto* const current_process = Core::CurrentProcess();
const ResourceLimit& resource_limit = current_process->GetResourceLimit();
if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) {
- return ERR_NOT_AUTHORIZED;
+ return ERR_INVALID_THREAD_PRIORITY;
}
if (processor_id == THREADPROCESSORID_DEFAULT) {