mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Missed a couple of instances of cfg_launchable().
[originally from svn r6824]
This commit is contained in:
parent
631b494807
commit
38ebd5f5ba
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user