mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Prevent NULL pointer dereference
This commit is contained in:
parent
9b8c596057
commit
bb27496e2e
@ -349,8 +349,9 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
|
||||
InvalidateRect(hwnd, NULL, false);
|
||||
|
||||
gdi->ctx_driver->update_window_title(
|
||||
video_info->context_data);
|
||||
if (gdi->ctx_driver->update_window_title)
|
||||
gdi->ctx_driver->update_window_title(
|
||||
video_info->context_data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -869,8 +869,9 @@ static bool gl1_gfx_frame(void *data, const void *frame,
|
||||
if (msg)
|
||||
font_driver_render_msg(gl1, msg, NULL, NULL);
|
||||
|
||||
gl1->ctx_driver->update_window_title(
|
||||
video_info->context_data);
|
||||
if (gl1->ctx_driver->update_window_title)
|
||||
gl1->ctx_driver->update_window_title(
|
||||
video_info->context_data);
|
||||
|
||||
/* Screenshots. */
|
||||
if (gl1->readback_buffer_screenshot)
|
||||
|
@ -454,7 +454,9 @@ static bool vg_frame(void *data, const void *frame,
|
||||
vg_draw_message(vg, msg);
|
||||
#endif
|
||||
|
||||
vg->ctx_driver->update_window_title(video_info->context_data);
|
||||
if (vg->ctx_driver->update_window_title)
|
||||
vg->ctx_driver->update_window_title(video_info->context_data);
|
||||
|
||||
vg->ctx_driver->swap_buffers(video_info->context_data);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user