Commit 5276d886 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

reg: Don't close not open reg key (Coverity).

parent edca49f6
......@@ -240,14 +240,12 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
if (value_name && value_empty)
{
RegCloseKey(subkey);
reg_message(STRING_INVALID_CMDLINE);
return 0;
}
if (value_empty && value_all)
{
RegCloseKey(subkey);
reg_message(STRING_INVALID_CMDLINE);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment