Commit dd919162 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed HKLM/HKCU mixup for the external fonts key.

parent f1b52aef
...@@ -985,9 +985,9 @@ static void update_reg_entries(void) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment