Fix bug in sys_spu_thread_group_create (#3734)

This commit is contained in:
clienthax 2017-11-14 18:24:55 +00:00 committed by Ivan
parent 0064976c43
commit 946ba3be29

View File

@ -296,7 +296,7 @@ error_code sys_spu_thread_group_create(vm::ptr<u32> id, u32 num, s32 prio, vm::p
// TODO: max num value should be affected by sys_spu_initialize() settings
if (!num || num > 6 || prio < 16 || prio > 255)
if (!num || num > 6 || ((prio < 16 || prio > 255) && attr->type != SYS_SPU_THREAD_GROUP_TYPE_EXCLUSIVE_NON_CONTEXT))
{
return CELL_EINVAL;
}