diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index 41a0aef0fc..30f303b93c 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -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.