diff options
| author | 2018-09-12 04:27:35 -0400 | |
|---|---|---|
| committer | 2018-09-12 05:20:02 -0400 | |
| commit | fbe462099bf626547abbf879514f4976e776ebde (patch) | |
| tree | a9dcc9f32e85a8312249b3f0a6517029aa3f0519 /src | |
| parent | kernel/errors: Correct error codes for invalid thread priority and invalid pr... (diff) | |
| download | yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.gz yuzu-fbe462099bf626547abbf879514f4976e776ebde.tar.xz yuzu-fbe462099bf626547abbf879514f4976e776ebde.zip | |
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 | |||
| 544 | case THREADPROCESSORID_3: | 544 | case THREADPROCESSORID_3: |
| 545 | break; | 545 | break; |
| 546 | default: | 546 | default: |
| 547 | ASSERT_MSG(false, "Unsupported thread processor ID: {}", processor_id); | 547 | LOG_ERROR(Kernel_SVC, "Invalid thread processor ID: {}", processor_id); |
| 548 | break; | 548 | return ERR_INVALID_PROCESSOR_ID; |
| 549 | } | 549 | } |
| 550 | 550 | ||
| 551 | auto& kernel = Core::System::GetInstance().Kernel(); | 551 | auto& kernel = Core::System::GetInstance().Kernel(); |