mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[WINESYNC] reg: Use correct error message if RegCreateKeyExW() fails.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id dedcd7c100461cf8be46387ebd65b60488c13ecf by Hugh McMaster <hugh.mcmaster@outlook.com> manual adjustment needed
This commit is contained in:
parent
40d62f3c5b
commit
123e459be5
4 changed files with 4 additions and 2 deletions
|
@ -157,7 +157,7 @@ static int run_add(HKEY root, WCHAR *path, WCHAR *value_name, BOOL value_empty,
|
||||||
if (RegCreateKeyExW(root, path, 0, NULL, REG_OPTION_NON_VOLATILE,
|
if (RegCreateKeyExW(root, path, 0, NULL, REG_OPTION_NON_VOLATILE,
|
||||||
KEY_READ|KEY_WRITE, NULL, &hkey, NULL))
|
KEY_READ|KEY_WRITE, NULL, &hkey, NULL))
|
||||||
{
|
{
|
||||||
output_message(STRING_INVALID_KEY);
|
output_message(STRING_ACCESS_DENIED);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,4 +152,5 @@ STRINGTABLE
|
||||||
\ Access the registry using the 32-bit view.\n\n\
|
\ Access the registry using the 32-bit view.\n\n\
|
||||||
\ /reg:64\n\
|
\ /reg:64\n\
|
||||||
\ Access the registry using the 64-bit view.\n\n"
|
\ Access the registry using the 64-bit view.\n\n"
|
||||||
|
STRING_ACCESS_DENIED, "reg: Unable to access or create the specified registry key\n"
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,3 +64,4 @@
|
||||||
#define STRING_KEY_NONEXIST 139
|
#define STRING_KEY_NONEXIST 139
|
||||||
#define STRING_KEY_IMPORT_FAILED 140
|
#define STRING_KEY_IMPORT_FAILED 140
|
||||||
#define STRING_REG_VIEW_USAGE 141
|
#define STRING_REG_VIEW_USAGE 141
|
||||||
|
#define STRING_ACCESS_DENIED 142
|
||||||
|
|
|
@ -4,4 +4,4 @@ directories:
|
||||||
files:
|
files:
|
||||||
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
||||||
tags:
|
tags:
|
||||||
wine: 8203c5db0248d38f06af55411ac4f4c89976fad2
|
wine: dedcd7c100461cf8be46387ebd65b60488c13ecf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue