mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
sceKernelGetTlsAddr() should only return a ptr.
So, that means no error codes - only null.
This commit is contained in:
1 parent
1c0d880bc3
commit
8d15cb953a
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user