mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
GFX_CTL_CHECK_WINDOW - prevent null pointer dereferences
This commit is contained in:
parent
90b1db7178
commit
15fa7f9cd1
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue