зеркало из https://github.com/github/putty.git
Now that we've decided on a file extension for private key files
(.PPK), make it the default in all the private-key file dialogs. [originally from svn r1808]
This commit is contained in:
Родитель
af2c66be95
Коммит
afbd7779e4
|
@ -1240,7 +1240,7 @@ static void prompt_add_keyfile(void)
|
|||
of.lStructSize = sizeof(of);
|
||||
#endif
|
||||
of.hwndOwner = main_hwnd;
|
||||
of.lpstrFilter = "All Files\0*\0\0\0";
|
||||
of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0AllFiles\0*\0\0\0";
|
||||
of.lpstrCustomFilter = NULL;
|
||||
of.nFilterIndex = 1;
|
||||
of.lpstrFile = filelist;
|
||||
|
|
|
@ -182,7 +182,7 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
|
|||
of.lStructSize = sizeof(of);
|
||||
#endif
|
||||
of.hwndOwner = hwnd;
|
||||
of.lpstrFilter = "All Files\0*\0\0\0";
|
||||
of.lpstrFilter = "PuTTY Private Key Files\0*.PPK\0AllFiles\0*\0\0\0";
|
||||
of.lpstrCustomFilter = NULL;
|
||||
of.nFilterIndex = 1;
|
||||
of.lpstrFile = filename;
|
||||
|
@ -190,6 +190,7 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
|
|||
of.nMaxFile = FILENAME_MAX;
|
||||
of.lpstrFileTitle = NULL;
|
||||
of.lpstrInitialDir = NULL;
|
||||
of.lpstrDefExt = ".ppk";
|
||||
of.lpstrTitle = dlgtitle;
|
||||
of.Flags = 0;
|
||||
if (save)
|
||||
|
|
3
windlg.c
3
windlg.c
|
@ -3133,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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче