From 23640fd12e55a13a1ade0ed841f5e7e49dfbeb84 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Feb 2015 16:38:47 +0100 Subject: [PATCH] input_keys_pressed - do early return in case driver.input or driver.input_data is NULL --- runloop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runloop.c b/runloop.c index 370b8526b7..45fcc038a9 100644 --- a/runloop.c +++ b/runloop.c @@ -772,6 +772,9 @@ static inline retro_input_t input_keys_pressed(void) }; retro_input_t ret = 0; + if (!driver.input || !driver.input_data) + return 0; + g_extern.turbo_count++; check_block_hotkey(driver.input->key_pressed(driver.input_data,