From: simon Date: Wed, 24 Jan 2001 09:29:55 +0000 (+0000) Subject: Ahem. The log-file Browse button should set cfg.logfilename and not X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/9fee0f0d916f6c3e903881fc742d35814e46dba9?hp=9ecf8e5a480f992f23a94ec87fcffadc2bb5dfb0 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 --- 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: