From be1e7cfb3705935ec23183f56f994008c5fd0158 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Feb 2015 19:17:22 -0800 Subject: [PATCH] Fix waiting tlspl result, address not block num. --- Core/HLE/sceKernelMemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index c0fec0eaf0..7c04fa7dec 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -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));