https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b6ad4f3d2767da97f5b0a…
commit b6ad4f3d2767da97f5b0a76a80d1553f2baf2930
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 21:06:06 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:32 2022 +0200
[WINESYNC] reg: Remove unneeded ternary operator in RegDeleteValueW().
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id fa24d458f5d9663fbefb1eb7406961b1c6ec3def 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 626fcf3b341..239bbbc672b 100644
--- a/base/applications/cmdutils/reg/delete.c
+++ b/base/applications/cmdutils/reg/delete.c
@@ -93,7 +93,7 @@ static int run_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR
*value_name
}
else if (value_name || value_empty)
{
- if (RegDeleteValueW(key, value_empty ? NULL : value_name) != ERROR_SUCCESS)
+ if (RegDeleteValueW(key, value_name))
{
RegCloseKey(key);
output_message(STRING_VALUE_NONEXIST);
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 7ad3b0831f2..545c4d312fb 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: 495d9b5fb3ab5bab885f9fe80cd6952cc4bbca6c
+ wine: fa24d458f5d9663fbefb1eb7406961b1c6ec3def