https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6b9db85aaf1bd62e3784e…
commit 6b9db85aaf1bd62e3784ec1a48a8a5fa1e81b2ec
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 RegOpenKeyExW() instead of RegOpenKeyW().
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id eee0c1f8f97d2d77118abb692e277dd440eed693 by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
base/applications/cmdutils/reg/delete.c | 2 +-
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/applications/cmdutils/reg/delete.c
b/base/applications/cmdutils/reg/delete.c
index 6ead3fc6919..0f263e91902 100644
--- a/base/applications/cmdutils/reg/delete.c
+++ b/base/applications/cmdutils/reg/delete.c
@@ -53,7 +53,7 @@ int reg_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR
*value_name,
return 0;
}
- if (RegOpenKeyW(root, path, &key) != ERROR_SUCCESS)
+ if (RegOpenKeyExW(root, path, 0, KEY_READ|KEY_SET_VALUE, &key))
{
output_message(STRING_CANNOT_FIND);
return 1;
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index a3ccfd52f30..5b8f8048f3d 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: 2c84ec7ee04ab03883907691f115e01a7165b6e9
+ wine: eee0c1f8f97d2d77118abb692e277dd440eed693