Cleanup hive parser

This commit is contained in:
momo5502
2024-11-03 15:16:36 +01:00
parent 7c2132510a
commit a83588f18d
2 changed files with 30 additions and 50 deletions

View File

@@ -33,7 +33,14 @@ namespace
void register_hive(registry_manager::hive_map& hives,
const std::filesystem::path& key, const std::filesystem::path& file)
{
hives[canonicalize_path(key)] = std::make_unique<hive_parser>(file);
try
{
hives[canonicalize_path(key)] = std::make_unique<hive_parser>(file);
}
catch (const std::exception& e)
{
}
}
}