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);
|
InvalidateRect(hwnd, NULL, false);
|
||||||
|
|
||||||
gdi->ctx_driver->update_window_title(
|
if (gdi->ctx_driver->update_window_title)
|
||||||
video_info->context_data);
|
gdi->ctx_driver->update_window_title(
|
||||||
|
video_info->context_data);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -869,8 +869,9 @@ static bool gl1_gfx_frame(void *data, const void *frame,
|
||||||
if (msg)
|
if (msg)
|
||||||
font_driver_render_msg(gl1, msg, NULL, NULL);
|
font_driver_render_msg(gl1, msg, NULL, NULL);
|
||||||
|
|
||||||
gl1->ctx_driver->update_window_title(
|
if (gl1->ctx_driver->update_window_title)
|
||||||
video_info->context_data);
|
gl1->ctx_driver->update_window_title(
|
||||||
|
video_info->context_data);
|
||||||
|
|
||||||
/* Screenshots. */
|
/* Screenshots. */
|
||||||
if (gl1->readback_buffer_screenshot)
|
if (gl1->readback_buffer_screenshot)
|
||||||
|
|
|
@ -454,7 +454,9 @@ static bool vg_frame(void *data, const void *frame,
|
||||||
vg_draw_message(vg, msg);
|
vg_draw_message(vg, msg);
|
||||||
#endif
|
#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);
|
vg->ctx_driver->swap_buffers(video_info->context_data);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue