summaryrefslogtreecommitdiff
path: root/soh/src/code/main.c
diff options
context:
space:
mode:
authorRandom06457 <28494085+Random06457@users.noreply.github.com>2022-06-04 18:56:31 +0900
committerKiritoDev <36680385+KiritoDv@users.noreply.github.com>2022-06-04 10:09:50 -0500
commitb5d5930fed84b094c8fc82244d6a64a4a9cd5087 (patch)
tree60933b4651ebff211734b090b7eadcef688bae1b /soh/src/code/main.c
parent72fcd19a9e6e8b7d40193391ea19dc087b2ee7f6 (diff)
change OSMesg definition and fix memory corruptions
Diffstat (limited to 'soh/src/code/main.c')
-rw-r--r--soh/src/code/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/main.c b/soh/src/code/main.c
index b9e74298d..35435815c 100644
--- a/soh/src/code/main.c
+++ b/soh/src/code/main.c
@@ -87,7 +87,7 @@ void Main(void* arg) {
R_ENABLE_ARENA_DBG = 0;
osCreateMesgQueue(&sSiIntMsgQ, sSiIntMsgBuf, 1);
- osSetEventMesg(5, &sSiIntMsgQ, 0);
+ osSetEventMesg(5, &sSiIntMsgQ, OS_MESG_PTR(NULL));
Main_LogSystemHeap();
@@ -118,7 +118,7 @@ void Main(void* arg) {
while (true) {
msg = NULL;
- osRecvMesg(&irqMgrMsgQ, (OSMesg)&msg, OS_MESG_BLOCK);
+ osRecvMesg(&irqMgrMsgQ, (OSMesg*)&msg, OS_MESG_BLOCK);
if (msg == NULL) {
break;
}