Fix crash in djui_inputbox_on_text_input()
This commit is contained in:
parent
421b07fbd0
commit
2897c7ad92
|
@ -40,6 +40,8 @@ static s32 RetrieveCurrentAnimationIndex(struct Object *aObject) {
|
||||||
|
|
||||||
// Must be called twice, before and after geo_set_animation_globals
|
// Must be called twice, before and after geo_set_animation_globals
|
||||||
void DynOS_Anim_Swap(void *aPtr) {
|
void DynOS_Anim_Swap(void *aPtr) {
|
||||||
|
if (!aPtr) { return; }
|
||||||
|
|
||||||
static Animation *pDefaultAnimation = NULL;
|
static Animation *pDefaultAnimation = NULL;
|
||||||
static Animation sGfxDataAnimation;
|
static Animation sGfxDataAnimation;
|
||||||
|
|
||||||
|
|
|
@ -317,6 +317,7 @@ void djui_inputbox_on_focus_end(UNUSED struct DjuiBase* base) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void djui_inputbox_on_text_input(struct DjuiBase *base, char* text) {
|
void djui_inputbox_on_text_input(struct DjuiBase *base, char* text) {
|
||||||
|
if (!base || !text) { return; }
|
||||||
struct DjuiInputbox *inputbox = (struct DjuiInputbox *) base;
|
struct DjuiInputbox *inputbox = (struct DjuiInputbox *) base;
|
||||||
char* msg = inputbox->buffer;
|
char* msg = inputbox->buffer;
|
||||||
int msgLen = strlen(msg);
|
int msgLen = strlen(msg);
|
||||||
|
|
Loading…
Reference in New Issue