~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed the bug whereby PuTTYgen went into generation mode as soon as
[sgt/putty]
/
puttygen.c
diff --git
a/puttygen.c
b/puttygen.c
index
dff3b4d
..
d85f4cc
100644
(file)
--- a/
puttygen.c
+++ b/
puttygen.c
@@
-1050,6
+1050,9
@@
static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
}
return 0;
case IDC_GENERATE:
+ if (HIWORD(wParam) != BN_CLICKED &&
+ HIWORD(wParam) != BN_DOUBLECLICKED)
+ break;
state =
(struct MainDlgState *) GetWindowLong(hwnd, GWL_USERDATA);
if (!state->generation_thread_exists) {