Fixed HKLM/HKCU mixup for the external fonts key.

This commit is contained in:
Alexandre Julliard 2005-06-28 19:15:17 +00:00
parent f1b52aef96
commit dd919162e3
1 changed files with 2 additions and 2 deletions

View File

@ -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;