mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 11:32:15 +08:00
[WINESYNC] reg: Better indicate when a registry value is not found.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id b80da20656feda99f9c6e749f5cd6d6f3c242cd3 by Hugh McMaster <hugh.mcmaster@outlook.com> manual adjustment needed
This commit is contained in:
committed by
Thomas Csovcsity
parent
9a8e4a271a
commit
6c0f70db4d
@@ -96,7 +96,7 @@ static int run_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR *value_name
|
||||
if (RegDeleteValueW(key, value_empty ? NULL : value_name) != ERROR_SUCCESS)
|
||||
{
|
||||
RegCloseKey(key);
|
||||
output_message(STRING_CANNOT_FIND);
|
||||
output_message(STRING_VALUE_NONEXIST);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ STRINGTABLE
|
||||
STRING_INVALID_KEY, "reg: Invalid registry key\n"
|
||||
STRING_INVALID_CMDLINE, "reg: Invalid command line parameters\n"
|
||||
STRING_NO_REMOTE, "reg: Unable to access remote machine\n"
|
||||
STRING_CANNOT_FIND, "reg: The system was unable to find the specified registry key or value\n"
|
||||
STRING_VALUE_NONEXIST, "reg: Unable to find the specified registry value\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"
|
||||
|
||||
@@ -174,7 +174,7 @@ static int query_value(HKEY key, WCHAR *value_name, WCHAR *path, BOOL recurse)
|
||||
{
|
||||
if (value_name && *value_name)
|
||||
{
|
||||
output_message(STRING_CANNOT_FIND);
|
||||
output_message(STRING_VALUE_NONEXIST);
|
||||
return 1;
|
||||
}
|
||||
output_string(fmt, path);
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#define STRING_INVALID_KEY 106
|
||||
#define STRING_INVALID_CMDLINE 107
|
||||
#define STRING_NO_REMOTE 108
|
||||
#define STRING_CANNOT_FIND 109
|
||||
#define STRING_VALUE_NONEXIST 109
|
||||
#define STRING_UNSUPPORTED_TYPE 110
|
||||
#define STRING_MISSING_INTEGER 111
|
||||
#define STRING_MISSING_HEXDATA 112
|
||||
|
||||
@@ -4,4 +4,4 @@ directories:
|
||||
files:
|
||||
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
||||
tags:
|
||||
wine: fbecd56db8889f9d349c2f807348cdddf397eab1
|
||||
wine: b80da20656feda99f9c6e749f5cd6d6f3c242cd3
|
||||
|
||||
Reference in New Issue
Block a user