diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-12 10:25:53 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-12 11:19:57 +0200 |
commit | 3c5c2925926364a225283d2ca39a4c2c312498b4 (patch) | |
tree | 36c556de82af57820ad0fb6af764fbaf3ee2cf14 /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #1296 from lioncash/prepo (diff) | |
download | yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.gz yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.bz2 yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.lz yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.xz yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.tar.zst yuzu-3c5c2925926364a225283d2ca39a4c2c312498b4.zip |
Diffstat (limited to '')
-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) { /// Sets the priority for the specified thread static ResultCode SetThreadPriority(Handle handle, u32 priority) { if (priority > THREADPRIO_LOWEST) { - return ERR_OUT_OF_RANGE; + return ERR_INVALID_THREAD_PRIORITY; } auto& kernel = Core::System::GetInstance().Kernel(); @@ -523,7 +523,7 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V std::string name = fmt::format("unknown-{:X}", entry_point); if (priority > THREADPRIO_LOWEST) { - return ERR_OUT_OF_RANGE; + return ERR_INVALID_THREAD_PRIORITY; } SharedPtr<ResourceLimit>& resource_limit = Core::CurrentProcess()->resource_limit; |