Commit 5bd636dc authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Check for a valid subkey pointer before attempting to delete a registry key (Coverity).

parent b501b238
......@@ -1125,7 +1125,7 @@ void delete_registry_key(WCHAR *reg_key_name)
error_exit(STRING_INVALID_SYSTEM_KEY, reg_key_name);
}
if (!*key_name)
if (!key_name || !*key_name)
error_exit(STRING_DELETE_FAILED, reg_key_name);
RegDeleteTreeW(key_class, key_name);
......
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