1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 12:03:03 -05:00
Simon Tatham 329bdb344c Make TermWin's palette_get_overrides() take a Terminal *.
Less than 12 hours after 0.75 went out of the door, a user pointed out
that enabling the 'Use system colours' config option causes an
immediate NULL-dereference crash. The reason is because a chain of
calls from term_init() ends up calling back to the Windows
implementation of the palette_get_overrides() method, which responds
by trying to call functions on the static variable 'term' in window.c,
which won't be initialised until term_init() has returned.

Simple fix: palette_get_overrides() is now given a pointer to the
Terminal that it should be updating, because it can't find it out any
other way.

(cherry picked from commit 571fa3388d61f3270d958503c62f09669665f6f8)
2021-06-12 14:08:10 +01:00
..
2019-03-31 10:35:10 +01:00
2019-10-14 19:42:37 +01:00
2020-03-10 21:27:57 +00:00
2020-03-10 21:11:14 +00:00
2020-12-13 12:36:38 +00:00
2020-06-21 16:39:47 +01:00
2019-10-14 19:42:37 +01:00
2020-02-09 08:51:37 +00:00