X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=puttygen.c;h=44b5ec9e67b62446f44eae7ff2ef763ac8c88f2c;hb=afbd7779e49eaf5f36a8cc94a6ccde1db6d0ba16;hp=2d58975929b52b0d24935ff82906ebc974a7f07a;hpb=c92ea6c8edfb61aa20984d0b9dba1a523767e3f5;p=PuTTY.git diff --git a/puttygen.c b/puttygen.c index 2d589759..44b5ec9e 100644 --- a/puttygen.c +++ b/puttygen.c @@ -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)