~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add context help to a couple of message boxes. Unfortunately the ones
[sgt/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
b3d350b
..
2105888
100644
(file)
--- a/
windows/window.c
+++ b/
windows/window.c
@@
-299,6
+299,7
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
int guess_width, guess_height;
hinst = inst;
int guess_width, guess_height;
hinst = inst;
+ hwnd = NULL;
flags = FLAG_VERBOSE | FLAG_INTERACTIVE;
sk_init();
flags = FLAG_VERBOSE | FLAG_INTERACTIVE;
sk_init();
@@
-451,8
+452,8
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
"SESSIONS. Are you really sure you want\n"
"to continue?", appname);
s2 = dupprintf("%s Warning", appname);
"SESSIONS. Are you really sure you want\n"
"to continue?", appname);
s2 = dupprintf("%s Warning", appname);
- if (
MessageBox(NULL, s1, s2
,
-
MB_YESNO | MB_ICONWARNING
) == IDYES) {
+ if (
message_box(s1, s2, MB_YESNO | MB_ICONWARNING
,
+
HELPCTXID(option_cleanup)
) == IDYES) {
cleanup_all();
}
sfree(s1);
cleanup_all();
}
sfree(s1);
@@
-597,8
+598,6
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
RegisterClass(&wndclass);
}
RegisterClass(&wndclass);
}
- hwnd = NULL;
-
memset(&ucsdata, 0, sizeof(ucsdata));
cfgtopalette();
memset(&ucsdata, 0, sizeof(ucsdata));
cfgtopalette();