diff --git a/windlg.c b/windlg.c index 07e34bb6..34d35af9 100644 --- a/windlg.c +++ b/windlg.c @@ -663,7 +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); + SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_RESETCONTENT, 0, 0); while (*p) { SendDlgItemMessage(hwnd, IDC_ENVLIST, LB_ADDSTRING, 0, (LPARAM) p);