X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/181a7e4b8e98f7fbd15b0998b9d26f8e5fc2e353..65c78e88edd541366726a65911825cf88083a4d9:/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;