summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2021-06-26 22:53:52 -0400
committerGitHub <noreply@github.com>2021-06-26 22:53:52 -0400
commitb9363bf366b5e8124773a77b5718272ed0a8ce39 (patch)
tree8f8228a93fbe16061be1656167fc1ca4aab49b14 /src
parent8116790c0880cbe03e8d14efe88bf6000f283819 (diff)
parent23bc333bc73388fc7bf927485790877d659b1676 (diff)
Merge pull request #444 from Kurausukun/fix_alloc
Fix Dumb Alloc/AllocZeroed Issue
Diffstat (limited to 'src')
-rw-r--r--src/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/malloc.c b/src/malloc.c
index 590d45c05..260c41d0d 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -192,12 +192,12 @@ void InitHeap(void *heapStart, u32 heapSize)
void *Alloc(u32 size)
{
- AllocInternal(sHeapStart, size);
+ return AllocInternal(sHeapStart, size);
}
void *AllocZeroed(u32 size)
{
- AllocZeroedInternal(sHeapStart, size);
+ return AllocZeroedInternal(sHeapStart, size);
}
void Free(void *pointer)