[PATCH 4/6 v2] reg: Specify the data type that is unsupported
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Feb 9 05:54:05 CST 2016
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
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 2f1c5a1..06e2c86 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..7aaec29 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, "Error: 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
More information about the wine-patches
mailing list