mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 16:47:42 -05:00
Create settings.c and move the load/save session code out of
windlg.c into it. Allows plink and pscp to no longer link with windlg.c, meaning they lose some of the sillier stub functions and also can provide a console-based form of verify_ssh_host_key(). [originally from svn r683]
This commit is contained in:
4
window.c
4
window.c
@ -132,7 +132,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
|
||||
default_protocol = DEFAULT_PROTOCOL;
|
||||
default_port = DEFAULT_PORT;
|
||||
|
||||
do_defaults(NULL);
|
||||
do_defaults(NULL, &cfg);
|
||||
|
||||
p = cmdline;
|
||||
while (*p && isspace(*p)) p++;
|
||||
@ -190,7 +190,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
|
||||
* An initial @ means to activate a saved session.
|
||||
*/
|
||||
if (*p == '@') {
|
||||
do_defaults (p+1);
|
||||
do_defaults (p+1, &cfg);
|
||||
if (!*cfg.host && !do_config()) {
|
||||
WSACleanup();
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user