From 2bc5d2e4008746b6dae2b2207a679cefc634472a Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Sat, 11 Apr 2026 23:40:05 +0300 Subject: [PATCH] Wrong function called in sceKernelCreateHeap --- Core/HLE/sceKernelHeap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelHeap.cpp b/Core/HLE/sceKernelHeap.cpp index 0855229137..7ea0071d45 100644 --- a/Core/HLE/sceKernelHeap.cpp +++ b/Core/HLE/sceKernelHeap.cpp @@ -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");