mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 07:50:10 +00:00
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.
This commit is contained in:
parent
3c5c292592
commit
fbe462099b
@ -544,8 +544,8 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
|
|||||||
case THREADPROCESSORID_3:
|
case THREADPROCESSORID_3:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ASSERT_MSG(false, "Unsupported thread processor ID: {}", processor_id);
|
LOG_ERROR(Kernel_SVC, "Invalid thread processor ID: {}", processor_id);
|
||||||
break;
|
return ERR_INVALID_PROCESSOR_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& kernel = Core::System::GetInstance().Kernel();
|
auto& kernel = Core::System::GetInstance().Kernel();
|
||||||
|
Loading…
Reference in New Issue
Block a user