1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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 :-/

[originally from svn r893]
This commit is contained in:
Simon Tatham 2001-01-24 09:29:55 +00:00
parent 34af1c4f1a
commit 3082f7e8be

View File

@ -1570,15 +1570,15 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg,
of.lpstrFilter = "All Files\0*\0\0\0"; of.lpstrFilter = "All Files\0*\0\0\0";
of.lpstrCustomFilter = NULL; of.lpstrCustomFilter = NULL;
of.nFilterIndex = 1; of.nFilterIndex = 1;
of.lpstrFile = filename; strcpy(filename, cfg.keyfile); of.lpstrFile = filename; strcpy(filename, cfg.logfilename);
of.nMaxFile = sizeof(filename); of.nMaxFile = sizeof(filename);
of.lpstrFileTitle = NULL; of.lpstrFileTitle = NULL;
of.lpstrInitialDir = NULL; of.lpstrInitialDir = NULL;
of.lpstrTitle = "Select session log file"; of.lpstrTitle = "Select session log file";
of.Flags = 0; of.Flags = 0;
if (GetSaveFileName(&of)) { if (GetSaveFileName(&of)) {
strcpy(cfg.keyfile, filename); strcpy(cfg.logfilename, filename);
SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.keyfile); SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.logfilename);
} }
break; break;
case IDC_LSTATOFF: case IDC_LSTATOFF: