mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 22:10:29 +02:00
sceKernelChangeThreadPriority() can't do dormant.
This commit is contained in:
1 parent
12005267ac
commit
5fe537cac6
1 file changed
+6
@@ -2276,6 +2276,12 @@ int sceKernelChangeThreadPriority(SceUID threadID, int priority)
|
||||
Thread *thread = kernelObjects.Get<Thread>(threadID, error);
|
||||
if (thread)
|
||||
{
|
||||
if (thread->isStopped())
|
||||
{
|
||||
ERROR_LOG_REPORT(HLE, "sceKernelChangeThreadPriority(%i, %i): thread is dormant", threadID, priority);
|
||||
return SCE_KERNEL_ERROR_DORMANT;
|
||||
}
|
||||
|
||||
if (priority < 0x08 || priority > 0x77)
|
||||
{
|
||||
ERROR_LOG_REPORT(HLE, "sceKernelChangeThreadPriority(%i, %i): bogus priority", threadID, priority);
|
||||
|
||||
Reference in new issue
Block a user