From 8d15cb953a324e8e1aec68707ff02dee466c572a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 15 Feb 2015 22:21:22 -0800 Subject: [PATCH] sceKernelGetTlsAddr() should only return a ptr. So, that means no error codes - only null. --- 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 f23559f14d..b6aac84eee 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -2205,7 +2205,7 @@ int sceKernelGetTlsAddr(SceUID uid) { tls->waitingThreads.push_back(threadID); __KernelWaitCurThread(WAITTYPE_TLSPL, uid, 1, 0, false, "allocate tls"); - return -1; + return 0; } u32 alignedSize = (tls->ntls.blockSize + tls->alignment - 1) & ~(tls->alignment - 1); @@ -2218,7 +2218,7 @@ int sceKernelGetTlsAddr(SceUID uid) return allocAddress; } else - return error; + return 0; } // Parameters are an educated guess.