mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Enable checking the format string, fix some issues
This commit is contained in:
1 parent
b92d822efe
commit
f962fb0386
8 files changed
+28
-25
No files matched your search
@@ -2936,15 +2936,16 @@ int sceKernelReferCallbackStatus(SceUID cbId, u32 statusAddr) {
|
||||
|
||||
u32 sceKernelExtendThreadStack(u32 size, u32 entryAddr, u32 entryParameter)
|
||||
{
|
||||
if (size < 512)
|
||||
return hleReportError(Log::sceKernel, SCE_KERNEL_ERROR_ILLEGAL_STACK_SIZE, "xxx", "stack size too small");
|
||||
if (size < 512) {
|
||||
return hleReportError(Log::sceKernel, SCE_KERNEL_ERROR_ILLEGAL_STACK_SIZE, "stack size too small");
|
||||
}
|
||||
|
||||
PSPThread *thread = __GetCurrentThread();
|
||||
if (!thread)
|
||||
return hleReportError(Log::sceKernel, -1, "xxx", "not on a thread?");
|
||||
return hleReportError(Log::sceKernel, -1, "not on a thread?");
|
||||
|
||||
if (!thread->PushExtendedStack(size))
|
||||
return hleReportError(Log::sceKernel, SCE_KERNEL_ERROR_NO_MEMORY, "xxx", "could not allocate new stack");
|
||||
return hleReportError(Log::sceKernel, SCE_KERNEL_ERROR_NO_MEMORY, "could not allocate new stack");
|
||||
|
||||
// The stack has been changed now, so it's do or die time.
|
||||
|
||||
|
||||
Reference in new issue
Block a user