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

This commit is contained in:
Nikolay Sivov 2009-02-08 16:27:48 +03:00 committed by Alexandre Julliard
parent edca49f6aa
commit 5276d886f9
1 changed files with 0 additions and 2 deletions

View File

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