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.
merge-requests/60/head
Lioncash 2018-09-12 04:27:35 +07:00
parent 3c5c292592
commit fbe462099b
1 changed files with 2 additions and 2 deletions

@ -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();