Fix basic registry support and add test

This commit is contained in:
momo5502
2024-11-04 18:36:18 +01:00
parent 6937827e59
commit 808dca6455
7 changed files with 74 additions and 12 deletions

View File

@@ -149,7 +149,7 @@ const hive_value* hive_key::get_value(std::ifstream& file, const std::string_vie
auto& value = entry->second;
if (value.parsed)
if (!value.parsed)
{
value.data = read_file_data(file, MAIN_ROOT_OFFSET + value.data_offset, value.data_length);
value.parsed = true;