X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windlg.c;h=2876d9dbfa90afe327c50ab7bbec7d50079761a8;hb=afbd7779e49eaf5f36a8cc94a6ccde1db6d0ba16;hp=8b358c62595503e11b3c7419b583d0aea5271dc4;hpb=c71432cb861db25eb933963c66a408c2a8e7f9d6;p=PuTTY.git diff --git a/windlg.c b/windlg.c index 8b358c62..2876d9db 100644 --- a/windlg.c +++ b/windlg.c @@ -1153,9 +1153,7 @@ static void init_dlg_ctrls(HWND hwnd, int keepsess) CheckDlgButton(hwnd, IDC_CHANGEUSER, cfg.change_username); CheckRadioButton(hwnd, IDC_SSHPROT1, IDC_SSHPROT2ONLY, cfg.sshprot == 1 ? IDC_SSHPROT1 : - cfg.sshprot == 2 ? IDC_SSHPROT2 : - cfg.sshprot == 3 ? IDC_SSHPROT2ONLY : - IDC_SSHPROT1); /* Should we make the default 2? */ + cfg.sshprot == 2 ? IDC_SSHPROT2 : IDC_SSHPROT2ONLY); CheckDlgButton(hwnd, IDC_AUTHTIS, cfg.try_tis_auth); CheckDlgButton(hwnd, IDC_AUTHKI, cfg.try_ki_auth); SetDlgItemText(hwnd, IDC_PKEDIT, cfg.keyfile); @@ -3135,7 +3133,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg, of.lStructSize = sizeof(of); #endif of.hwndOwner = hwnd; - of.lpstrFilter = "All Files\0*\0\0\0"; + of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0" + "AllFiles\0*\0\0\0"; of.lpstrCustomFilter = NULL; of.nFilterIndex = 1; of.lpstrFile = filename;