Restore what is directly truncated in sys_spu.cpp. @danilaml that may be someone used a wrong constant for the third condition.

This commit is contained in:
luxsie 2015-04-11 01:58:12 +08:00
parent 147c50e7ca
commit 94441d7df3

View file

@ -508,7 +508,8 @@ s32 sys_spu_thread_group_terminate(u32 id, s32 value)
}
}
if ((group->state <= SPU_THREAD_GROUP_STATUS_INITIALIZED) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING))
// TODO:: Syphurith: Thank @danilaml (first) and let us talk about this mistake/typo. Have you used the wrong constant for the third condition?
if ((group->state <= SPU_THREAD_GROUP_STATUS_INITIALIZED) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING))
{
return CELL_EINVAL;
}