[PATCH 4/5] reg: Drop key output from the "Invalid system key" error message
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Apr 20 08:21:58 CDT 2021
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/reg/reg.c | 3 +--
programs/reg/reg.rc | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/programs/reg/reg.c b/programs/reg/reg.c
index 9dd491a517e..7ed45b73ad8 100644
--- a/programs/reg/reg.c
+++ b/programs/reg/reg.c
@@ -240,8 +240,7 @@ BOOL parse_registry_key(const WCHAR *key, HKEY *root, WCHAR **path)
*root = path_get_rootkey(key);
if (!*root)
{
- if (*path) *(*path - 1) = 0;
- output_message(STRING_INVALID_SYSTEM_KEY, key);
+ output_message(STRING_INVALID_SYSTEM_KEY);
return FALSE;
}
diff --git a/programs/reg/reg.rc b/programs/reg/reg.rc
index 85e3675464c..021734db0a7 100644
--- a/programs/reg/reg.rc
+++ b/programs/reg/reg.rc
@@ -168,7 +168,7 @@ STRINGTABLE
\ /y\n\
\ Overwrite <file> without prompting for confirmation.\n\n"
- STRING_INVALID_SYSTEM_KEY, "reg: Invalid system key [%1]\n"
+ STRING_INVALID_SYSTEM_KEY, "reg: Invalid system key\n"
STRING_OVERWRITE_FILE, "The file '%1' already exists. Do you want to overwrite it?"
STRING_KEY_NONEXIST, "reg: Unable to find the specified registry key\n"
STRING_KEY_IMPORT_FAILED, "reg: Unable to import the registry key '%1'\n"
--
2.31.0
More information about the wine-devel
mailing list