Wrong function called in sceKernelCreateHeap

This commit is contained in:
Nemoumbra committed 2026-04-11 23:40:05 +03:00
1 parent 5312a4e119
commit 2bc5d2e400
1 file changed
+1 -1
+1 -1
View File
@@ -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");