From f3165540e742770b778e5276b124b0394158510d Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 14 May 2003 18:53:28 +0000 Subject: [PATCH] Rene Post's other patch: PuTTYgen was generating double file dialogs by mistake. git-svn-id: svn://svn.tartarus.org/sgt/putty@3196 cda61777-01e9-0310-a592-d414129be87e --- puttygen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/puttygen.c b/puttygen.c index e16b4f3d..8ce452a2 100644 --- a/puttygen.c +++ b/puttygen.c @@ -1107,6 +1107,8 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, case IDC_SAVE: case IDC_EXPORT_OPENSSH: case IDC_EXPORT_SSHCOM: + if (HIWORD(wParam) != BN_CLICKED) + break; state = (struct MainDlgState *) GetWindowLong(hwnd, GWL_USERDATA); if (state->key_exists) { @@ -1200,6 +1202,8 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, } break; case IDC_SAVEPUB: + if (HIWORD(wParam) != BN_CLICKED) + break; state = (struct MainDlgState *) GetWindowLong(hwnd, GWL_USERDATA); if (state->key_exists) { @@ -1233,6 +1237,8 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, break; case IDC_LOAD: case IDC_IMPORT: + if (HIWORD(wParam) != BN_CLICKED) + break; state = (struct MainDlgState *) GetWindowLong(hwnd, GWL_USERDATA); if (!state->generation_thread_exists) { -- 2.11.0