1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Prevent network errors from summarily closing the window when CoE is off

[originally from svn r613]
This commit is contained in:
Simon Tatham
2000-09-22 11:04:57 +00:00
parent 985207d4a9
commit e5ef37f3f5
7 changed files with 148 additions and 48 deletions

10
plink.c
View File

@ -20,6 +20,16 @@ void fatalbox (char *p, ...) {
WSACleanup();
exit(1);
}
void connection_fatal (char *p, ...) {
va_list ap;
fprintf(stderr, "FATAL ERROR: ", p);
va_start(ap, p);
vfprintf(stderr, p, ap);
va_end(ap);
fputc('\n', stderr);
WSACleanup();
exit(1);
}
HANDLE outhandle;