reg: Remove unneeded ternary operator in RegDeleteValueW().
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9cbff7e68c
commit
fa24d458f5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue