[idd] helper: save mode changes into registry and update listview

This commit is contained in:
Quantum
2025-10-04 04:07:54 -04:00
committed by Geoffrey McRae
parent bf77128053
commit 7d33b93a50
4 changed files with 31 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ CRegistrySettings::~CRegistrySettings()
LSTATUS CRegistrySettings::open()
{
HKEY key;
LSTATUS result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, LGIDD_REGKEY, 0, KEY_QUERY_VALUE, &key);
LSTATUS result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, LGIDD_REGKEY, 0, KEY_QUERY_VALUE | KEY_SET_VALUE, &key);
if (result == ERROR_SUCCESS)
hKey = key;