~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
David Brinegar's workaround for an error reporting problem in some
[sgt/putty]
/
puttygen.c
diff --git
a/puttygen.c
b/puttygen.c
index
8ce44b4
..
19245f8
100644
(file)
--- a/
puttygen.c
+++ b/
puttygen.c
@@
-325,7
+325,7
@@
static void setupbigedit1(HWND hwnd, int id, struct RSAKey *key) {
static void setupbigedit2(HWND hwnd, int id, struct ssh2_userkey *key) {
unsigned char *pub_blob;
char *buffer, *p;
static void setupbigedit2(HWND hwnd, int id, struct ssh2_userkey *key) {
unsigned char *pub_blob;
char *buffer, *p;
- int pub_len
, buflen
;
+ int pub_len;
int i;
pub_blob = key->alg->public_blob(key->data, &pub_len);
int i;
pub_blob = key->alg->public_blob(key->data, &pub_len);
@@
-530,8
+530,13
@@
static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
sfree(*state->commentptr);
*state->commentptr = smalloc(len+1);
GetWindowText(editctl, *state->commentptr, len+1);
sfree(*state->commentptr);
*state->commentptr = smalloc(len+1);
GetWindowText(editctl, *state->commentptr, len+1);
- }
- }
+ if (state->ssh2) {
+ setupbigedit2(hwnd, IDC_KEYDISPLAY, &state->ssh2key);
+ } else {
+ setupbigedit1(hwnd, IDC_KEYDISPLAY, &state->key);
+ }
+ }
+ }
break;
case IDC_ABOUT:
EnableWindow(hwnd, 0);
break;
case IDC_ABOUT:
EnableWindow(hwnd, 0);