[WINESYNC] reg: Use RegCreateKeyExW() instead of RegCreateKeyW().

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id aaf503e1de3f476639113b7ab7988c8628529e03 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
winesync 2022-01-16 20:48:04 +01:00 committed by Thomas Csovcsity
parent cb66fe28ba
commit b1bb43c991
2 changed files with 3 additions and 2 deletions

View file

@ -154,7 +154,8 @@ static int run_add(HKEY root, WCHAR *path, WCHAR *value_name, BOOL value_empty,
{
HKEY key;
if (RegCreateKeyW(root, path, &key) != ERROR_SUCCESS)
if (RegCreateKeyExW(root, path, 0, NULL, REG_OPTION_NON_VOLATILE,
KEY_READ|KEY_WRITE, NULL, &key, NULL))
{
output_message(STRING_INVALID_KEY);
return 1;