Ahem. The log-file Browse button should set cfg.logfilename and not
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Jan 2001 09:29:55 +0000 (09:29 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 24 Jan 2001 09:29:55 +0000 (09:29 +0000)
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

index 6b7314d..629e689 100644 (file)
--- 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: