Fixed HKLM/HKCU mixup for the external fonts key.
This commit is contained in:
parent
f1b52aef96
commit
dd919162e3
|
@ -985,9 +985,9 @@ static void update_reg_entries(void)
|
||||||
/* Delete the old external fonts key */
|
/* Delete the old external fonts key */
|
||||||
RegCloseKey(externalkey);
|
RegCloseKey(externalkey);
|
||||||
externalkey = 0;
|
externalkey = 0;
|
||||||
RegDeleteKeyW(HKEY_LOCAL_MACHINE, external_fonts_reg_key);
|
RegDeleteKeyW(HKEY_CURRENT_USER, external_fonts_reg_key);
|
||||||
|
|
||||||
if(RegCreateKeyExW(HKEY_LOCAL_MACHINE, external_fonts_reg_key,
|
if(RegCreateKeyExW(HKEY_CURRENT_USER, external_fonts_reg_key,
|
||||||
0, NULL, 0, KEY_ALL_ACCESS, NULL, &externalkey, NULL) != ERROR_SUCCESS) {
|
0, NULL, 0, KEY_ALL_ACCESS, NULL, &externalkey, NULL) != ERROR_SUCCESS) {
|
||||||
ERR("Can't create external font reg key\n");
|
ERR("Can't create external font reg key\n");
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue