mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Fix crash in RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK
This commit is contained in:
parent
f4d3f47a0a
commit
99fe70a189
@ -856,12 +856,11 @@ bool rarch_environment_cb(unsigned cmd, void *data)
|
||||
runloop_ctl(RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET, &frontend_key_event);
|
||||
runloop_ctl(RUNLOOP_CTL_KEY_EVENT_GET, &key_event);
|
||||
|
||||
if (!key_event)
|
||||
return false;
|
||||
|
||||
RARCH_LOG("Environ SET_KEYBOARD_CALLBACK.\n");
|
||||
*key_event = info->callback;
|
||||
*frontend_key_event = *key_event;
|
||||
if (key_event)
|
||||
*key_event = info->callback;
|
||||
if (frontend_key_event)
|
||||
*frontend_key_event = *key_event;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user