From: Hugh McMaster Subject: [PATCH 5/7] reg: Specify the data type that is unsupported Message-Id: Date: Fri, 5 Feb 2016 19:08:34 +1100 In-Reply-To: <1454659716-22187-1-git-send-email-hugh.mcmaster@outlook.com> References: <1454659716-22187-1-git-send-email-hugh.mcmaster@outlook.com> Signed-off-by: Hugh McMaster --- programs/reg/reg.c | 2 +- programs/reg/reg.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/reg/reg.c b/programs/reg/reg.c index 9976f58..58c5346 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -324,7 +324,7 @@ static int reg_add(WCHAR *key_name, WCHAR *value_name, BOOL value_empty, if (reg_type == ~0u) { RegCloseKey(subkey); - output_message(STRING_UNSUPPORTED_TYPE); + output_message(STRING_UNSUPPORTED_TYPE, type); return 1; } diff --git a/programs/reg/reg.rc b/programs/reg/reg.rc index c8df13c..309af0f 100644 --- a/programs/reg/reg.rc +++ b/programs/reg/reg.rc @@ -35,7 +35,7 @@ STRINGTABLE STRING_INVALID_CMDLINE, "Error: Invalid command line parameters\n" STRING_NO_REMOTE, "Error: Unable to access remote machine\n" STRING_CANNOT_FIND, "Error: The system was unable to find the specified registry key or value\n" - STRING_UNSUPPORTED_TYPE, "Error: Unsupported type\n" + STRING_UNSUPPORTED_TYPE, "reg: Unsupported registry data type [%1]\n" STRING_MISSING_INTEGER, "reg: The option [/d] must be followed by a valid integer\n" STRING_MISSING_HEXDATA, "reg: The option [/d] must be followed by a valid hexadecimal value\n" STRING_UNHANDLED_TYPE, "reg: Unhandled registry data type [/t 0x%1!x!, /d %2]\n" -- 1.9.1