From ccaa75ec53ee3abce2e93281059e652667c087c0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Feb 2015 19:17:40 -0800 Subject: [PATCH] Don't return an error for double tls free. Apparently, that's a-okay. --- Core/HLE/sceKernelMemory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 7c04fa7dec..432a4d5f11 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -1971,9 +1971,9 @@ int __KernelFreeTls(TLSPL *tls, SceUID threadID) ++tls->ntls.freeBlocks; return 0; } - // TODO: Correct error code. + // We say "okay" even though nothing was freed. else - return -1; + return 0; } void __KernelTlsplThreadEnd(SceUID threadID)