Signed-off-by: Hugh McMaster hugh.mcmaster@outlook.com --- programs/conhost/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/conhost/window.c b/programs/conhost/window.c index 77e17313f9b..7564dce51b7 100644 --- a/programs/conhost/window.c +++ b/programs/conhost/window.c @@ -265,11 +265,11 @@ static void load_config( const WCHAR *key_name, struct console_config *config ) config->edition_mode = 0;
/* read global settings */ - if (!RegOpenKeyW( HKEY_CURRENT_USER, L"Console", &key )) + if (!RegOpenKeyExW( HKEY_CURRENT_USER, L"Console", 0, KEY_READ, &key )) { load_registry_key( key, config ); /* if requested, load part related to console title */ - if (key_name && !RegOpenKeyW( key, key_name, &app_key )) + if (key_name && !RegOpenKeyExW( key, key_name, 0, KEY_READ, &app_key )) { load_registry_key( app_key, config ); RegCloseKey( app_key );