[WINESYNC] reg: Remove unneeded ternary operator in RegDeleteValueW().

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

wine commit id fa24d458f5d9663fbefb1eb7406961b1c6ec3def by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
winesync 2022-01-16 21:06:06 +01:00 committed by Thomas Csovcsity
parent d472925c90
commit b6ad4f3d27
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
wine: 495d9b5fb3ab5bab885f9fe80cd6952cc4bbca6c
wine: fa24d458f5d9663fbefb1eb7406961b1c6ec3def