diff --git a/programs/reg/reg.c b/programs/reg/reg.c index 823b4d956c4..fcb096983de 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -442,6 +442,9 @@ int wmain(int argc, WCHAR *argvW[]) } return reg_query(key_name, value_name, value_empty, subkey); } - - return 0; + else + { + reg_message(STRING_INVALID_CMDLINE); + return 1; + } }