[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:
winesync 2022-01-16 21:15:48 +01:00 committed by Thomas Csovcsity
parent 40d62f3c5b
commit 123e459be5
4 changed files with 4 additions and 2 deletions

View file

@ -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,
KEY_READ|KEY_WRITE, NULL, &hkey, NULL))
{
output_message(STRING_INVALID_KEY);
output_message(STRING_ACCESS_DENIED);
return 1;
}