mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Remove all `enum'-typed variables from the Config structure.
Everything in there which is integral is now an actual int, which means my forthcoming revamp of the config box will be able to work with `int *' pointers without fear of doom. [originally from svn r2733]
This commit is contained in:
6
window.c
6
window.c
@ -912,7 +912,7 @@ void connection_fatal(void *frontend, char *fmt, ...)
|
||||
vsprintf(stuff, fmt, ap);
|
||||
va_end(ap);
|
||||
MessageBox(hwnd, stuff, "PuTTY Fatal Error", MB_ICONERROR | MB_OK);
|
||||
if (cfg.close_on_exit == COE_ALWAYS)
|
||||
if (cfg.close_on_exit == FORCE_ON)
|
||||
PostQuitMessage(1);
|
||||
else {
|
||||
session_closed = TRUE;
|
||||
@ -957,8 +957,8 @@ static void enact_pending_netevent(void)
|
||||
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);
|
||||
if (cfg.close_on_exit == FORCE_ON ||
|
||||
cfg.close_on_exit == AUTO) PostQuitMessage(0);
|
||||
else {
|
||||
session_closed = TRUE;
|
||||
set_icon(NULL, "PuTTY (inactive)");
|
||||
|
Reference in New Issue
Block a user