https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b1bb43c9912dfa082556a…
commit b1bb43c9912dfa082556af3c932689da04b46004
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 20:48:04 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:31 2022 +0200
[WINESYNC] reg: Use RegCreateKeyExW() instead of RegCreateKeyW().
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id aaf503e1de3f476639113b7ab7988c8628529e03 by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
base/applications/cmdutils/reg/add.c | 3 ++-
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/base/applications/cmdutils/reg/add.c b/base/applications/cmdutils/reg/add.c
index 29ac0e88af5..e1fd2223716 100644
--- a/base/applications/cmdutils/reg/add.c
+++ b/base/applications/cmdutils/reg/add.c
@@ -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;
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index be7ad220b82..e4f3e317f2e 100644
--- a/sdk/tools/winesync/reg.cfg
+++ b/sdk/tools/winesync/reg.cfg
@@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
- wine: 08976b3ee0db827bc5add829de1f148da89a6362
+ wine: aaf503e1de3f476639113b7ab7988c8628529e03