Commit 33d657f5 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Exit with an error if the specified operation is invalid.

parent 6a927ef7
......@@ -939,6 +939,13 @@ int wmain(int argc, WCHAR *argvW[])
op = get_operation(argvW[1]);
if (op == REG_INVALID)
{
output_message(STRING_INVALID_OPTION, argvW[1]);
output_message(STRING_REG_HELP);
return 1;
}
if (op == REG_ADD)
{
WCHAR *key_name, *value_name = NULL, *type = NULL, separator = '\0', *data = NULL;
......
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