Return 0 if recevie a null name.

This commit is contained in:
shenweip committed 2013-10-05 08:59:53 +08:00
1 parent 7f92a5dffd
commit a9d7d84601
1 file changed
+4 -1
+4 -1
View File
@@ -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;