conhost: Save console settings as global defaults on first run.
commit37bcbe6bcace68ddc56bd2757ca993e2c82e4e7e
authorHugh McMaster <hugh.mcmaster@outlook.com>
Fri, 27 May 2022 09:57:34 +0000 (27 19:57 +1000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 30 May 2022 20:07:42 +0000 (30 22:07 +0200)
treee59efc18c6a1fd2a2bb2311c872713f513701238
parente5ae7a4026f46181d6a45a2026e78a4e177ba279
conhost: Save console settings as global defaults on first run.

On Windows, HKCU\Console holds global default settings, while subkeys
hold any app-specific settings that differ from the defaults.

Wine's conhost.exe implementation currently saves all console settings
to an app-specific subkey on the first run, while global defaults are
only saved to HKCU\Console if the user selects 'Set Defaults' from the
pop-up menu and saves new settings. This is the opposite of console
behaviour on Windows.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/conhost/window.c