From a9d7d84601581afb60485d4bde05ff93d6339fd2 Mon Sep 17 00:00:00 2001 From: shenweip Date: Sat, 5 Oct 2013 08:59:53 +0800 Subject: [PATCH] Return 0 if recevie a null name. --- Core/HLE/sceHeap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceHeap.cpp b/Core/HLE/sceHeap.cpp index a7a1728e7c..097f86750c 100644 --- a/Core/HLE/sceHeap.cpp +++ b/Core/HLE/sceHeap.cpp @@ -127,7 +127,10 @@ int sceHeapCreateHeap(const char* name, u32 heapSize, int attr, u32 paramsPtr) { u32 size = Memory::Read_U32(paramsPtr); WARN_LOG_REPORT(SCEKERNEL, "sceHeapCreateHeap(): unsupported options parameter, size = %d", size); } - + if (name = NULL) { + WARN_LOG(SCEKERNEL,"sceHeapCreateHeap(): name is NULL"); + return 0; + } int allocSize = (heapSize + 3) & ~3; Heap *heap = new Heap;