X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=puttygen.c;h=956cdaf42cba8f6424068282dd9e7803a14385c6;hb=4756c15fc9556e2f29bdc65594ea15892f9b5d35;hp=072b7d05c3e303f4ec79b2c47dccd193b23393fa;hpb=5e49e3fe1c2235f50cf69733337adc3b8c19ce7e;p=PuTTY.git diff --git a/puttygen.c b/puttygen.c index 072b7d05..956cdaf4 100644 --- a/puttygen.c +++ b/puttygen.c @@ -22,6 +22,22 @@ static int requested_help; static char *cmdline_keyfile = NULL; +/* + * Print a modal (Really Bad) message box and perform a fatal exit. + */ +void modalfatalbox(char *fmt, ...) +{ + va_list ap; + char stuff[200]; + + va_start(ap, fmt); + vsprintf(stuff, fmt, ap); + va_end(ap); + MessageBox(NULL, stuff, "PuTTYgen Fatal Error", + MB_SYSTEMMODAL | MB_ICONERROR | MB_OK); + exit(1); +} + /* ---------------------------------------------------------------------- * Progress report code. This is really horrible :-) */ @@ -205,14 +221,6 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle, return GetOpenFileName(&of); } -/* - * This function is needed to link with the DES code. We need not - * have it do anything at all. - */ -void logevent(char *msg) -{ -} - /* * Dialog-box function for the Licence box. */ @@ -1384,7 +1392,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) int argc; char **argv; - split_into_argv(cmdline, &argc, &argv); + split_into_argv(cmdline, &argc, &argv, NULL); if (argc > 0) { /*