mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
dinput: catch null pointer
This commit is contained in:
parent
2ea6c6bcfe
commit
3ac51389bb
@ -208,6 +208,9 @@ static void dinput_poll(void *data)
|
||||
{
|
||||
struct dinput_input *di = (struct dinput_input*)data;
|
||||
|
||||
if (!di)
|
||||
return;
|
||||
|
||||
memset(di->state, 0, sizeof(di->state));
|
||||
if (di->keyboard)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user