reg: Remove wrong and useless check (Coverity).

This commit is contained in:
Marcus Meissner 2009-10-20 09:31:15 +02:00 committed by Alexandre Julliard
parent 82379e83e3
commit 93dad930cd
1 changed files with 0 additions and 7 deletions

View File

@ -279,13 +279,6 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
DWORD count; DWORD count;
LONG rc; LONG rc;
if (value_name)
{
RegCloseKey(subkey);
reg_message(STRING_INVALID_CMDLINE);
return 1;
}
rc = RegQueryInfoKeyW(subkey, NULL, NULL, NULL, NULL, NULL, NULL, NULL, rc = RegQueryInfoKeyW(subkey, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
&maxValue, NULL, NULL, NULL); &maxValue, NULL, NULL, NULL);
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)