Windows: the key file's open dialog sized for the Windows SSH runs on (MSVC has no OPENFILENAME_SIZE_VERSION_400)

This commit is contained in:
Claude committed 2026-11-12 15:50:24 +00:00
1 parent 86d41bfcc0
commit bc449e67ea
1 file changed
+1 -1
+1 -1
View File
@@ -899,7 +899,7 @@ static bool choose_key(HWND d, bool ppk, char *file, int n)
ssh_dir(dir, sizeof(dir));
OPENFILENAME o;
memset(&o, 0, sizeof(o));
o.lStructSize = OPENFILENAME_SIZE_VERSION_400;
o.lStructSize = sizeof(o); /* (the SSH build is for Windows 7 on) */
o.hwndOwner = d;
o.lpstrFilter = ppk ? "PuTTY keys (*.ppk)\0*.ppk\0" :
"All keys\0*.*\0PuTTY keys (*.ppk)\0*.ppk\0";