mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Return 0 if recevie a null name.
This commit is contained in:
1 parent
7f92a5dffd
commit
a9d7d84601
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user