Fix waiting tlspl result, address not block num.

This commit is contained in:
Unknown W. Brackets committed 2015-02-21 15:50:17 -08:00
1 parent 76dfbc7436
commit be1e7cfb37
1 file changed
+1 -1
+1 -1
View File
@@ -1957,7 +1957,7 @@ int __KernelFreeTls(TLSPL *tls, SceUID threadID)
// Otherwise, if there was a thread waiting, we were full, so this newly freed one is theirs.
// TODO: Is the block wiped or anything?
tls->usage[freeBlock] = waitingThreadID;
__KernelResumeThreadFromWait(waitingThreadID, freeBlock);
__KernelResumeThreadFromWait(waitingThreadID, freedAddress);
// Gotta watch the thread to quit as well, since they've allocated now.
tlsplThreadEndChecks.insert(std::make_pair(waitingThreadID, uid));