mirror of
https://github.com/izzy2lost/Panda3DS.git
synced 2026-03-10 12:38:37 -07:00
Make svcCreateThread panic with invalid IDs
This commit is contained in:
@@ -389,10 +389,8 @@ void Kernel::createThread() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (id < -2 && id > 3) {
|
||||
Helpers::warn("Invalid processor ID in CreateThread");
|
||||
// TODO: This should return an error
|
||||
id = static_cast<s32>(ProcessorID::AppCore);
|
||||
if (id < -2 || id > 3) {
|
||||
Helpers::panic("Invalid processor ID in CreateThread");
|
||||
}
|
||||
|
||||
regs[0] = Result::Success;
|
||||
|
||||
Reference in New Issue
Block a user