mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
Rainer Loritz noticed that the Telnet environment box is not cleared
when loading a new session. Oops! [originally from svn r1171]
This commit is contained in:
parent
3bc9118bc4
commit
3b81448ae4
1
windlg.c
1
windlg.c
@ -663,6 +663,7 @@ static void init_dlg_ctrls(HWND hwnd, int keepsess)
|
|||||||
IDC_LSTATXAPN);
|
IDC_LSTATXAPN);
|
||||||
{
|
{
|
||||||
char *p = cfg.environmt;
|
char *p = cfg.environmt;
|
||||||
|
SendDlgItemMessage(hwnd, IDV_ENVLIST, LB_RESETCONTENT, 0, 0);
|
||||||
while (*p) {
|
while (*p) {
|
||||||
SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_ADDSTRING, 0,
|
SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_ADDSTRING, 0,
|
||||||
(LPARAM) p);
|
(LPARAM) p);
|
||||||
|
Loading…
Reference in New Issue
Block a user