From bc449e67ea2deb965c0b37f1a5ae9fcdd6a0a7fe Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 12 Nov 2026 15:50:24 +0000 Subject: [PATCH] Windows: the key file's open dialog sized for the Windows SSH runs on (MSVC has no OPENFILENAME_SIZE_VERSION_400) --- windows/src/remote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/remote.cpp b/windows/src/remote.cpp index 78a6b10..cedd224 100644 --- a/windows/src/remote.cpp +++ b/windows/src/remote.cpp @@ -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";