X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9546c9c6fd9b1c67c92f4ea2f0039039c63d2f8e..d9fffe93f4b699fa925c82f483c98ea8cc399981:/mac/macterm.c diff --git a/mac/macterm.c b/mac/macterm.c index 9da219b7..1f14b423 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.42 2003/01/12 14:23:00 ben Exp $ */ +/* $Id: macterm.c,v 1.45 2003/01/12 16:25:58 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -169,13 +169,15 @@ void mac_startsession(Session *s) ActivatePalette(s->window); } - s->logctx = log_init(s); + s->logctx = log_init(s, &s->cfg); term_provide_logctx(s->term, s->logctx); - errmsg = s->back->init(s->term, &s->backhandle, s->cfg.host, s->cfg.port, - &s->realhost, s->cfg.tcp_nodelay); - fatalbox("%s", errmsg); + errmsg = s->back->init(s->term, &s->backhandle, &s->cfg, s->cfg.host, + s->cfg.port, &s->realhost, s->cfg.tcp_nodelay); + if (errmsg != NULL) + fatalbox("%s", errmsg); s->back->provide_logctx(s->backhandle, s->logctx); + set_title(s, s->realhost); term_provide_resize_fn(s->term, s->back->size, s->backhandle);