From 454cdbcc50311942e00b39938518c5fa40d3f99d Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sat, 8 Jan 2022 00:18:10 -0600 Subject: [PATCH] Revert to malloc for allocating ramdrive on DSi (#147) --- arm9/source/ramd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/ramd.c b/arm9/source/ramd.c index ff73ea0..3e2236e 100644 --- a/arm9/source/ramd.c +++ b/arm9/source/ramd.c @@ -20,7 +20,7 @@ const u16 bootSectorSignature = 0xAA55; bool ramd_startup() { if(isDSiMode() || REG_SCFG_EXT != 0) { - ramdLoc = (u8*)calloc(0x6000 * SECTOR_SIZE, 1); + ramdLoc = (u8*)malloc(0x6000 * SECTOR_SIZE); } else { ramdLoc = (u8*)calloc(0x8 * SECTOR_SIZE, 1); toncset(ramdLocMep, 0, (ramdSectors - 0x8) * SECTOR_SIZE); // Fill MEP with 00 to avoid displaying weird files