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:
parent
888804eef7
commit
4c61cb20a1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user