From: simon Date: Mon, 28 Aug 2006 17:41:02 +0000 (+0000) Subject: Missed a couple of instances of cfg_launchable(). X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/69a1f86cc2ef54163313a2c297585b0628f3fe26 Missed a couple of instances of cfg_launchable(). git-svn-id: svn://svn.tartarus.org/sgt/putty@6824 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/windows/window.c b/windows/window.c index 42aa7fb7..81a28aa4 100644 --- a/windows/window.c +++ b/windows/window.c @@ -409,7 +409,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) i--; p[i] = '\0'; do_defaults(p + 1, &cfg); - if (!*cfg.host && !do_config()) { + if (!cfg_launchable(&cfg) && !do_config()) { cleanup_exit(0); } } else if (*p == '&') { @@ -554,7 +554,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) cmdline_run_saved(&cfg); - if (!*cfg.host && !do_config()) { + if (!cfg_launchable(&cfg) && !do_config()) { cleanup_exit(0); }