reg: Don't close not open reg key (Coverity).
This commit is contained in:
parent
edca49f6aa
commit
5276d886f9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue