diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-12 04:25:53 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-12 05:19:57 -0400 |
| commit | 3c5c2925926364a225283d2ca39a4c2c312498b4 (patch) | |
| tree | 36c556de82af57820ad0fb6af764fbaf3ee2cf14 /src/core/hle/kernel/thread.cpp | |
| parent | 475222a496a67e746db5a8192ac9f34e4a038f1a (diff) | |
kernel/errors: Correct error codes for invalid thread priority and invalid processor ID
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 3d10d9af2..3f12a84dc 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -227,12 +227,12 @@ ResultVal<SharedPtr<Thread>> Thread::Create(KernelCore& kernel, std::string name // Check if priority is in ranged. Lowest priority -> highest priority id. if (priority > THREADPRIO_LOWEST) { LOG_ERROR(Kernel_SVC, "Invalid thread priority: {}", priority); - return ERR_OUT_OF_RANGE; + return ERR_INVALID_THREAD_PRIORITY; } if (processor_id > THREADPROCESSORID_MAX) { LOG_ERROR(Kernel_SVC, "Invalid processor id: {}", processor_id); - return ERR_OUT_OF_RANGE_KERNEL; + return ERR_INVALID_PROCESSOR_ID; } // TODO(yuriks): Other checks, returning 0xD9001BEA |
