1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-15 18:17:32 -05:00

The logging module now contains a local copy of cfg too.

[originally from svn r2566]
This commit is contained in:
Simon Tatham
2003-01-12 15:10:27 +00:00
parent ac2367bc72
commit 2d469ba497
8 changed files with 45 additions and 25 deletions

View File

@ -507,7 +507,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
hwnd = NULL;
term = term_init(&cfg, NULL);
logctx = log_init(NULL);
logctx = log_init(NULL, &cfg);
term_provide_logctx(term, logctx);
cfgtopalette();
@ -1760,11 +1760,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
}
}
if (strcmp(prev_cfg.logfilename, cfg.logfilename) ||
prev_cfg.logtype != cfg.logtype) {
logfclose(logctx); /* reset logging */
logfopen(logctx);
}
/* Pass new config data to the logging module */
log_reconfig(logctx, &cfg);
sfree(logpal);
/*