GFX_CTL_CHECK_WINDOW - prevent null pointer dereferences

This commit is contained in:
twinaphex 2016-04-02 20:53:13 +02:00
parent 90b1db7178
commit 15fa7f9cd1

View File

@ -269,7 +269,9 @@ bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data)
video_driver_ctl(RARCH_DISPLAY_CTL_GET_FRAME_COUNT, &frame_count);
if (!video_context_data)
if (!video_context_data || !size_data)
return false;
if (!current_video_context || !current_video_context->check_window)
return false;
current_video_context->check_window(video_context_data,