X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8fd3bdc4ee9fe7d3036a36b70affe273008024e2..1709795fee167cc2d2d423df0161e7963376b910:/plink.c diff --git a/plink.c b/plink.c index ed4f1345..0d79a984 100644 --- a/plink.c +++ b/plink.c @@ -29,6 +29,17 @@ void fatalbox(char *p, ...) WSACleanup(); cleanup_exit(1); } +void modalfatalbox(char *p, ...) +{ + va_list ap; + fprintf(stderr, "FATAL ERROR: "); + va_start(ap, p); + vfprintf(stderr, p, ap); + va_end(ap); + fputc('\n', stderr); + WSACleanup(); + cleanup_exit(1); +} void connection_fatal(char *p, ...) { va_list ap;