sceKernelStartThread(): skip argPtr for 0 args.

This makes threads/semaphores pass, so adding to passing list.
Depends on an update to pspautotests.
This commit is contained in:
Unknown W. Brackets committed 2012-11-12 08:16:16 -08:00
1 parent 5944981d9b
commit d1fd16ecba
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -859,7 +859,7 @@ u32 sceKernelStartThread()
startThread->nt.status = THREADSTATUS_READY;
u32 sp = startThread->context.r[MIPS_REG_SP];
if (argBlockPtr)
if (argBlockPtr && argSize > 0)
{
startThread->context.r[MIPS_REG_A0] = argSize;
startThread->context.r[MIPS_REG_A1] = sp;