mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Wrong function called in sceKernelCreateHeap
This commit is contained in:
1 parent
5312a4e119
commit
2bc5d2e400
1 file changed
+1
-1
@@ -48,7 +48,7 @@ struct KernelHeap : public KernelObject {
|
||||
static int sceKernelCreateHeap(int partitionId, int size, int flags, const char *Name) {
|
||||
u32 allocSize = (size + 3) & ~3;
|
||||
|
||||
BlockAllocator *allocator = BlockAllocatorFromAddr(partitionId);
|
||||
BlockAllocator *allocator = BlockAllocatorFromID(partitionId);
|
||||
// TODO: Validate error code.
|
||||
if (!allocator)
|
||||
return hleLogError(Log::sceKernel, SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT, "invalid partition");
|
||||
|
||||
Reference in new issue
Block a user