X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/688861a828dce616dbc0b67397558b2ecaaa8a75..fc9b052a2fc832ea8bc3efa9c79eba0f961830b2:/windows/winpgen.c diff --git a/windows/winpgen.c b/windows/winpgen.c index ffbeb1a4..aeebb629 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -41,6 +41,22 @@ void modalfatalbox(char *fmt, ...) exit(1); } +/* + * Print a non-fatal message box and do not exit. + */ +void nonfatal(char *fmt, ...) +{ + va_list ap; + char *stuff; + + va_start(ap, fmt); + stuff = dupvprintf(fmt, ap); + va_end(ap); + MessageBox(NULL, stuff, "PuTTYgen Error", + MB_SYSTEMMODAL | MB_ICONERROR | MB_OK); + sfree(stuff); +} + /* ---------------------------------------------------------------------- * Progress report code. This is really horrible :-) */