sceKernelGetTlsAddr() should only return a ptr.

So, that means no error codes - only null.
This commit is contained in:
Unknown W. Brackets committed 2015-02-21 15:50:19 -08:00
1 parent 1c0d880bc3
commit 8d15cb953a
1 file changed
+2 -2
+2 -2
View File
@@ -2205,7 +2205,7 @@ int sceKernelGetTlsAddr(SceUID uid)
{
tls->waitingThreads.push_back(threadID);
__KernelWaitCurThread(WAITTYPE_TLSPL, uid, 1, 0, false, "allocate tls");
return -1;
return 0;
}
u32 alignedSize = (tls->ntls.blockSize + tls->alignment - 1) & ~(tls->alignment - 1);
@@ -2218,7 +2218,7 @@ int sceKernelGetTlsAddr(SceUID uid)
return allocAddress;
}
else
return error;
return 0;
}
// Parameters are an educated guess.