diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-12 04:27:35 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-12 05:20:02 -0400 |
commit | fbe462099bf626547abbf879514f4976e776ebde (patch) | |
tree | a9dcc9f32e85a8312249b3f0a6517029aa3f0519 /src | |
parent | 3c5c2925926364a225283d2ca39a4c2c312498b4 (diff) |
svc: Return ERR_INVALID_PROCESSOR_ID in CreateThread() if an invalid processor ID is given
This is what the kernel does for an out-of-range processor ID.
Diffstat (limited to 'src')
-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 1325c2e62..f1be402cb 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -544,8 +544,8 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V case THREADPROCESSORID_3: break; default: - ASSERT_MSG(false, "Unsupported thread processor ID: {}", processor_id); - break; + LOG_ERROR(Kernel_SVC, "Invalid thread processor ID: {}", processor_id); + return ERR_INVALID_PROCESSOR_ID; } auto& kernel = Core::System::GetInstance().Kernel(); |