1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-25 13:54:49 -05:00

Add a missing null pointer check in one of the dialog box functions.

[originally from svn r9958]
This commit is contained in:
Simon Tatham 2013-07-22 07:11:48 +00:00
parent 888804eef7
commit 4c61cb20a1

View File

@ -2366,6 +2366,8 @@ void dlg_set_focus(union control *ctrl, void *dlg)
struct winctrl *c = dlg_findbyctrl(dp, ctrl);
int id;
HWND ctl;
if (!c)
return;
switch (ctrl->generic.type) {
case CTRL_EDITBOX: id = c->base_id + 1; break;
case CTRL_RADIO: