From 9fee0f0d916f6c3e903881fc742d35814e46dba9 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 24 Jan 2001 09:29:55 +0000 Subject: [PATCH 1/1] Ahem. The log-file Browse button should set cfg.logfilename and not cfg.keyfile. Next time I copy and paste a huge chunk of code, I should take more care about it :-/ git-svn-id: svn://svn.tartarus.org/sgt/putty@893 cda61777-01e9-0310-a592-d414129be87e --- windlg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windlg.c b/windlg.c index 6b7314d4..629e6892 100644 --- a/windlg.c +++ b/windlg.c @@ -1570,15 +1570,15 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg, of.lpstrFilter = "All Files\0*\0\0\0"; of.lpstrCustomFilter = NULL; of.nFilterIndex = 1; - of.lpstrFile = filename; strcpy(filename, cfg.keyfile); + of.lpstrFile = filename; strcpy(filename, cfg.logfilename); of.nMaxFile = sizeof(filename); of.lpstrFileTitle = NULL; of.lpstrInitialDir = NULL; of.lpstrTitle = "Select session log file"; of.Flags = 0; if (GetSaveFileName(&of)) { - strcpy(cfg.keyfile, filename); - SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.keyfile); + strcpy(cfg.logfilename, filename); + SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.logfilename); } break; case IDC_LSTATOFF: -- 2.11.0