diff options
| author | 2018-10-24 14:10:30 -0400 | |
|---|---|---|
| committer | 2018-10-24 14:11:11 -0400 | |
| commit | fcf8f53a631fe5f15f2b456bc34331de8e67a64b (patch) | |
| tree | af886e3b663feeca60702e8d96ce9ca3ed502d39 /src/core/hle/kernel/svc.cpp | |
| parent | kernel/svc: Move and correct returned error code for invalid thread prioritie... (diff) | |
| download | yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.gz yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.tar.xz yuzu-fcf8f53a631fe5f15f2b456bc34331de8e67a64b.zip | |
kernel/svc: Amend returned error code for invalid priorities in CreateThread
Like with the previous change, the kernel doesn't return NOT_AUTHORIZED
here. It returns INVALID_THREAD_PRIORITY.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 |
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 | |||
| 746 | auto* const current_process = Core::CurrentProcess(); | 746 | auto* const current_process = Core::CurrentProcess(); |
| 747 | const ResourceLimit& resource_limit = current_process->GetResourceLimit(); | 747 | const ResourceLimit& resource_limit = current_process->GetResourceLimit(); |
| 748 | if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) { | 748 | if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) { |
| 749 | return ERR_NOT_AUTHORIZED; | 749 | return ERR_INVALID_THREAD_PRIORITY; |
| 750 | } | 750 | } |
| 751 | 751 | ||
| 752 | if (processor_id == THREADPROCESSORID_DEFAULT) { | 752 | if (processor_id == THREADPROCESSORID_DEFAULT) { |