Prevent NULL pointer dereference

This commit is contained in:
twinaphex 2020-04-29 14:38:11 +02:00
parent 9b8c596057
commit bb27496e2e
3 changed files with 9 additions and 5 deletions

View File

@ -349,6 +349,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
InvalidateRect(hwnd, NULL, false);
if (gdi->ctx_driver->update_window_title)
gdi->ctx_driver->update_window_title(
video_info->context_data);

View File

@ -869,6 +869,7 @@ static bool gl1_gfx_frame(void *data, const void *frame,
if (msg)
font_driver_render_msg(gl1, msg, NULL, NULL);
if (gl1->ctx_driver->update_window_title)
gl1->ctx_driver->update_window_title(
video_info->context_data);

View File

@ -454,7 +454,9 @@ static bool vg_frame(void *data, const void *frame,
vg_draw_message(vg, msg);
#endif
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;