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

reg: Do not allow combinations of /v, /ve or /va in the 'delete' function.

parent fc028e99
......@@ -395,13 +395,7 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
return 1;
}
if (value_name && value_empty)
{
output_message(STRING_INVALID_CMDLINE);
return 1;
}
if (value_empty && value_all)
if ((value_name && value_empty) || (value_name && value_all) || (value_empty && value_all))
{
output_message(STRING_INVALID_CMDLINE);
return 1;
......
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