diff options
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -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 1c9373ed8..1325c2e62 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -378,7 +378,7 @@ static ResultCode GetThreadPriority(u32* priority, Handle handle) { | |||
| 378 | /// Sets the priority for the specified thread | 378 | /// Sets the priority for the specified thread |
| 379 | static ResultCode SetThreadPriority(Handle handle, u32 priority) { | 379 | static ResultCode SetThreadPriority(Handle handle, u32 priority) { |
| 380 | if (priority > THREADPRIO_LOWEST) { | 380 | if (priority > THREADPRIO_LOWEST) { |
| 381 | return ERR_OUT_OF_RANGE; | 381 | return ERR_INVALID_THREAD_PRIORITY; |
| 382 | } | 382 | } |
| 383 | 383 | ||
| 384 | auto& kernel = Core::System::GetInstance().Kernel(); | 384 | auto& kernel = Core::System::GetInstance().Kernel(); |
| @@ -523,7 +523,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V | |||
| 523 | std::string name = fmt::format("unknown-{:X}", entry_point); | 523 | std::string name = fmt::format("unknown-{:X}", entry_point); |
| 524 | 524 | ||
| 525 | if (priority > THREADPRIO_LOWEST) { | 525 | if (priority > THREADPRIO_LOWEST) { |
| 526 | return ERR_OUT_OF_RANGE; | 526 | return ERR_INVALID_THREAD_PRIORITY; |
| 527 | } | 527 | } |
| 528 | 528 | ||
| 529 | SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; | 529 | SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; |