From 4c8d5eaff02e66e4c06b9e7961e6cca22edb0deb Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Fri, 11 Mar 2016 19:06:51 -0500 Subject: [PATCH] Fix wrongly used o.conn[config] in place of current config c Signed-off-by: Selva Nair --- openvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn.c b/openvpn.c index e7da90d..1626cd3 100644 --- a/openvpn.c +++ b/openvpn.c @@ -640,7 +640,7 @@ ThreadOpenVPNStatus(void *p) c->state = suspending; EnableWindow(GetDlgItem(c->hwndStatus, ID_DISCONNECT), FALSE); EnableWindow(GetDlgItem(c->hwndStatus, ID_RESTART), FALSE); - SetMenuStatus(&o.conn[config], disconnecting); + SetMenuStatus(c, disconnecting); SetDlgItemText(c->hwndStatus, ID_TXT_STATUS, LoadLocalizedString(IDS_NFO_STATE_WAIT_TERM)); SetEvent(c->exit_event); break;