session_closed = TRUE; sprintf(morestuff, "%.70s (inactive)", appname); set_icon(NULL, morestuff); set_title(NULL, morestuff);
close_session();
void connection_fatal(void *frontend, char *fmt, ...){    va_list ap;    char *stuff, morestuff[100];    va_start(ap, fmt);    stuff = dupvprintf(fmt, ap);    va_end(ap);    sprintf(morestuff, "%.70s Fatal Error", appname);    MessageBox(hwnd, stuff, morestuff, MB_ICONERROR | MB_OK);    sfree(stuff);    if (cfg.close_on_exit == FORCE_ON)	PostQuitMessage(1);    else {	session_closed = TRUE;	sprintf(morestuff, "%.70s (inactive)", appname);	set_icon(NULL, morestuff);	set_title(NULL, morestuff);    }}