Commit ead76c7e authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

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

parent 2dd01087
...@@ -355,12 +355,7 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty, ...@@ -355,12 +355,7 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
return 1; return 1;
p = strchrW(key_name,'\\'); p = strchrW(key_name,'\\');
if (!p) if (p) p++;
{
output_message(STRING_INVALID_KEY);
return 1;
}
p++;
root = path_get_rootkey(key_name); root = path_get_rootkey(key_name);
if (!root) if (!root)
...@@ -440,12 +435,7 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty, ...@@ -440,12 +435,7 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
return 1; return 1;
p = strchrW(key_name,'\\'); p = strchrW(key_name,'\\');
if (!p) if (p) p++;
{
output_message(STRING_INVALID_KEY);
return 1;
}
p++;
root = path_get_rootkey(key_name); root = path_get_rootkey(key_name);
if (!root) if (!root)
......
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