diff options
| author | 2018-09-12 04:25:53 -0400 | |
|---|---|---|
| committer | 2018-09-12 05:19:57 -0400 | |
| commit | 3c5c2925926364a225283d2ca39a4c2c312498b4 (patch) | |
| tree | 36c556de82af57820ad0fb6af764fbaf3ee2cf14 /src/core/hle/kernel/svc.cpp | |
| parent | Merge pull request #1296 from lioncash/prepo (diff) | |
| download | yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.gz yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.xz yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.zip | |
kernel/errors: Correct error codes for invalid thread priority and invalid processor ID
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; |