Fixed crash in DynOS_UpdateCmd

This commit is contained in:
MysterD 2023-05-07 15:49:26 -07:00
parent 5c2474814b
commit d52ee8588d
1 changed files with 2 additions and 0 deletions

View File

@ -54,7 +54,9 @@ void *DynOS_SwapCmd(void *aCmd) {
}
void *DynOS_UpdateCmd(void *aCmd) {
if (!aCmd) { return; }
static const uintptr_t sCmdLevelEntry[] = { CALL(0, lvl_init_or_update) };
if (!sCmdLevelEntry) { return; }
sDynosIsLevelEntry |= (memcmp(aCmd, sCmdLevelEntry, sizeof(sCmdLevelEntry)) == 0);
return DynOS_Warp_Update(aCmd, sDynosIsLevelEntry);
}