reg: Allow values to be added, deleted or modified in root keys.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-03-21 16:00:33 +11:00 committed by Alexandre Julliard
parent 2dd01087f2
commit ead76c7e47
1 changed files with 2 additions and 12 deletions

View File

@ -355,12 +355,7 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
return 1;
p = strchrW(key_name,'\\');
if (!p)
{
output_message(STRING_INVALID_KEY);
return 1;
}
p++;
if (p) p++;
root = path_get_rootkey(key_name);
if (!root)
@ -440,12 +435,7 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
return 1;
p = strchrW(key_name,'\\');
if (!p)
{
output_message(STRING_INVALID_KEY);
return 1;
}
p++;
if (p) p++;
root = path_get_rootkey(key_name);
if (!root)