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 :-)
*/
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.
*/
int argc;
char **argv;
- split_into_argv(cmdline, &argc, &argv);
+ split_into_argv(cmdline, &argc, &argv, NULL);
if (argc > 0) {
/*