diff --git a/backends/PalmOS/Src/init_arm.cpp b/backends/PalmOS/Src/init_arm.cpp index 0f8483fad1f..39713f9a9f9 100644 --- a/backends/PalmOS/Src/init_arm.cpp +++ b/backends/PalmOS/Src/init_arm.cpp @@ -2,16 +2,16 @@ #include "globals.h" #include "init_arm.h" -static void PnoInit(DmResID resID,PNOInitType *pnoP) { +static void PnoInit(DmResID resID, PNOInitType *pnoP) { // Load and allocate PNO MemHandle armH = DmGetResource('ARMC', resID); - + if (armH) { MemPtr armP = MemHandleLock(armH); PnoLoad(&pnoP->pnoDesc, armP); MemPtrUnlock(armP); DmReleaseResource(armH); - + // Init PNO PnoEntryHeader *header = (PnoEntryHeader *)ALIGN_4BYTE(pnoP->headerBuffer); pnoP->alignedHeader = header; @@ -31,5 +31,5 @@ void ARMInit() { void ARMRelease() { PnoUnload(&ARM(ARM_ENGINE).pnoDesc); PnoUnload(&ARM(ARM_COMMON).pnoDesc); + MemSet(gVars->arm, sizeof(gVars->arm), 0); } -