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

View file

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