Rainer Loritz noticed that the Telnet environment box is not cleared
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)
when loading a new session. Oops!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1171 cda61777-01e9-0310-a592-d414129be87e

windlg.c

index 793bb08..07e34bb 100644 (file)
--- 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);