Fix TLS allocation (been there a while...)

This worked for the most common case, but was a typo.
This commit is contained in:
Unknown W. Brackets committed 2013-07-31 08:15:07 -07:00
1 parent 4a4f07df8e
commit c2c9179406
1 file changed
+1 -1
+1 -1
View File
@@ -1490,7 +1490,7 @@ int sceKernelAllocateTls(SceUID uid)
// The PSP doesn't give the same block out twice in a row, even if freed.
if (tls->usage[tls->next] == 0)
allocBlock = tls->next;
tls->next = (tls->next + 1) % tls->ntls.blockSize;
tls->next = (tls->next + 1) % tls->ntls.totalBlocks;
}
if (allocBlock != -1)