mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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;
|
struct dinput_input *di = (struct dinput_input*)data;
|
||||||
|
|
||||||
|
if (!di)
|
||||||
|
return;
|
||||||
|
|
||||||
memset(di->state, 0, sizeof(di->state));
|
memset(di->state, 0, sizeof(di->state));
|
||||||
if (di->keyboard)
|
if (di->keyboard)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user