VERY experimental Nintendo Switch 2 emulator
C++
kernel/svc: Amend returned error code for invalid priorities in CreateThread
Lioncashfc5b2b9f14f5
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cppindex e7e4c59b67..a5302d924f 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, Vauto* const current_process = Core::CurrentProcess();const ResourceLimit& resource_limit = current_process->GetResourceLimit();if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) {- return ERR_NOT_AUTHORIZED;+ return ERR_INVALID_THREAD_PRIORITY;}if (processor_id == THREADPROCESSORID_DEFAULT) {