X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0aa741089ec49599d920f9e427924ee054323339..33f4bde27b629068d4a17ca54d67ac54fc70c10c:/windows/window.c diff --git a/windows/window.c b/windows/window.c index b7f5f867..38270e68 100644 --- a/windows/window.c +++ b/windows/window.c @@ -5342,6 +5342,22 @@ void modalfatalbox(char *fmt, ...) cleanup_exit(1); } +/* + * Print a message box and don't close the connection. + */ +void nonfatal(char *fmt, ...) +{ + va_list ap; + char *stuff, morestuff[100]; + + va_start(ap, fmt); + stuff = dupvprintf(fmt, ap); + va_end(ap); + sprintf(morestuff, "%.70s Error", appname); + MessageBox(hwnd, stuff, morestuff, MB_ICONERROR | MB_OK); + sfree(stuff); +} + DECL_WINDOWS_FUNCTION(static, BOOL, FlashWindowEx, (PFLASHWINFO)); static void init_flashwindow(void)