From 6edd7346879373ad77b27867587b0421fd82fc13 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 4 Aug 2001 15:04:10 +0000 Subject: [PATCH] Rainer Loritz noticed that the Telnet environment box is not cleared when loading a new session. Oops! git-svn-id: svn://svn.tartarus.org/sgt/putty@1171 cda61777-01e9-0310-a592-d414129be87e --- windlg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windlg.c b/windlg.c index 793bb08c..07e34bb6 100644 --- a/windlg.c +++ b/windlg.c @@ -663,6 +663,7 @@ static void init_dlg_ctrls(HWND hwnd, int keepsess) IDC_LSTATXAPN); { char *p = cfg.environmt; + SendDlgItemMessage(hwnd, IDV_ENVLIST, LB_RESETCONTENT, 0, 0); while (*p) { SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_ADDSTRING, 0, (LPARAM) p); -- 2.11.0