Fix TLS allocation (been there a while...)
This worked for the most common case, but was a typo.
This commit is contained in:
parent
4a4f07df8e
commit
c2c9179406
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue