Return an error for invalid priority.
This commit is contained in:
parent
161f2d712e
commit
0ff0b3f57d
1 changed files with 3 additions and 0 deletions
|
@ -1609,6 +1609,9 @@ int sceKernelRotateThreadReadyQueue(int priority)
|
|||
if (priority == 0)
|
||||
priority = cur->nt.currentPriority;
|
||||
|
||||
if (priority <= 0x07 || priority > 0x77)
|
||||
return SCE_KERNEL_ERROR_ILLEGAL_PRIORITY;
|
||||
|
||||
if (!threadReadyQueue[priority].empty())
|
||||
{
|
||||
// In other words, yield to everyone else.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue