902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
|
vsprintf(stuff, fmt, ap);
va_end(ap);
MessageBox(hwnd, stuff, "PuTTY Fatal Error", MB_ICONERROR | MB_OK);
if (cfg.close_on_exit == COE_ALWAYS)
PostQuitMessage(1);
else {
session_closed = TRUE;
SetWindowText(hwnd, "PuTTY (inactive)");
}
}
/*
* Report an error at the command-line parsing stage.
*/
void cmdline_error(char *fmt, ...)
|
|
>
|
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
|
vsprintf(stuff, fmt, ap);
va_end(ap);
MessageBox(hwnd, stuff, "PuTTY Fatal Error", MB_ICONERROR | MB_OK);
if (cfg.close_on_exit == COE_ALWAYS)
PostQuitMessage(1);
else {
session_closed = TRUE;
set_icon(NULL, "PuTTY (inactive)");
set_title(NULL, "PuTTY (inactive)");
}
}
/*
* Report an error at the command-line parsing stage.
*/
void cmdline_error(char *fmt, ...)
|
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
|
if (ret == 0 && !session_closed) {
/* Abnormal exits will already have set session_closed and taken
* appropriate action. */
if (cfg.close_on_exit == COE_ALWAYS ||
cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0);
else {
session_closed = TRUE;
SetWindowText(hwnd, "PuTTY (inactive)");
MessageBox(hwnd, "Connection closed by remote host",
"PuTTY", MB_OK | MB_ICONINFORMATION);
}
}
}
/*
|
|
>
|
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
|
if (ret == 0 && !session_closed) {
/* Abnormal exits will already have set session_closed and taken
* appropriate action. */
if (cfg.close_on_exit == COE_ALWAYS ||
cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0);
else {
session_closed = TRUE;
set_icon(NULL, "PuTTY (inactive)");
set_title(NULL, "PuTTY (inactive)");
MessageBox(hwnd, "Connection closed by remote host",
"PuTTY", MB_OK | MB_ICONINFORMATION);
}
}
}
/*
|