~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support multiple anchor name types now that Jacob has enhanced
[sgt/putty]
/
windows
/
winpgen.c
diff --git
a/windows/winpgen.c
b/windows/winpgen.c
index
1e2075d
..
a3d97aa
100644
(file)
--- a/
windows/winpgen.c
+++ b/
windows/winpgen.c
@@
-21,8
+21,6
@@
#define DEFAULT_KEYSIZE 1024
#define DEFAULT_KEYSIZE 1024
-static int requested_help;
-
static char *cmdline_keyfile = NULL;
/*
static char *cmdline_keyfile = NULL;
/*
@@
-635,8
+633,8
@@
void load_key_file(HWND hwnd, struct MainDlgState *state,
!import_possible(type)) {
char *msg = dupprintf("Couldn't load private key (%s)",
key_type_to_str(type));
!import_possible(type)) {
char *msg = dupprintf("Couldn't load private key (%s)",
key_type_to_str(type));
-
MessageBox(NULL, msg
,
-
"PuTTYgen Error", MB_OK | MB_ICONERROR
);
+
message_box(msg, "PuTTYgen Error", MB_OK | MB_ICONERROR
,
+
HELPCTXID(errors_cantloadkey)
);
sfree(msg);
return;
}
sfree(msg);
return;
}
@@
-664,7
+662,7
@@
void load_key_file(HWND hwnd, struct MainDlgState *state,
dlgret = DialogBoxParam(hinst,
MAKEINTRESOURCE(210),
NULL, PassphraseProc,
dlgret = DialogBoxParam(hinst,
MAKEINTRESOURCE(210),
NULL, PassphraseProc,
- (LPARAM) &
pps);
+ (LPARAM) &pps);
if (!dlgret) {
ret = -2;
break;
if (!dlgret) {
ret = -2;
break;
@@
-697,7
+695,8
@@
void load_key_file(HWND hwnd, struct MainDlgState *state,
sfree(comment);
if (ret == 0) {
char *msg = dupprintf("Couldn't load private key (%s)", errmsg);
sfree(comment);
if (ret == 0) {
char *msg = dupprintf("Couldn't load private key (%s)", errmsg);
- MessageBox(NULL, msg, "PuTTYgen Error", MB_OK | MB_ICONERROR);
+ message_box(msg, "PuTTYgen Error", MB_OK | MB_ICONERROR,
+ HELPCTXID(errors_cantloadkey));
sfree(msg);
} else if (ret == 1) {
/*
sfree(msg);
} else if (ret == 1) {
/*
@@
-1417,6
+1416,7
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
InitCommonControls();
hinst = inst;
InitCommonControls();
hinst = inst;
+ hwnd = NULL;
/*
* See if we can find our Help file.
/*
* See if we can find our Help file.