X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/54018d95d47e4aff427c4e76f2d952c063ae077b..2833957974b5c33f4470ef8772efd6ba746d205b:/windows/window.c diff --git a/windows/window.c b/windows/window.c index b3d350b4..21058887 100644 --- 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; + hwnd = NULL; 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); - 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); @@ -597,8 +598,6 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) RegisterClass(&wndclass); } - hwnd = NULL; - memset(&ucsdata, 0, sizeof(ucsdata)); cfgtopalette();