~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The logging module now contains a local copy of cfg too.
[sgt/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
cfb8eae
..
0a9cf41
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-507,7
+507,7
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
hwnd = NULL;
term = term_init(&cfg, NULL);
hwnd = NULL;
term = term_init(&cfg, NULL);
- logctx = log_init(NULL);
+ logctx = log_init(NULL
, &cfg
);
term_provide_logctx(term, logctx);
cfgtopalette();
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);
/*
sfree(logpal);
/*