Skip to content

Commit 8e4d6ed

Browse files
authored
Merge pull request #592 from NotRequiem/dev
ignore this
2 parents 61b85ba + db8bd3d commit 8e4d6ed

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/vmaware.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6168,7 +6168,7 @@ struct VM {
61686168
if (EnumSystemFirmwareTables(acpi_signature, tables.data(), acpi_enum_size) != acpi_enum_size)
61696169
return false;
61706170

6171-
// High Performance Event Timer detection
6171+
// High Precision Event Timer detection
61726172
bool found_hpet = false;
61736173
for (const auto table_id : tables) {
61746174
constexpr DWORD hpet_signature = 'TEPH';
@@ -9716,7 +9716,7 @@ struct VM {
97169716
out_buf = nullptr;
97179717
out_len = 0;
97189718
return false;
9719-
};
9719+
};
97209720

97219721
variable_name_ptr current_var = reinterpret_cast<variable_name_ptr>(enum_base_buffer);
97229722
const size_t buffer_total_size = static_cast<size_t>(buffer_required_length);
@@ -9845,7 +9845,6 @@ struct VM {
98459845

98469846
if (!found_dbx_default || !found_kek_default || !found_pk_default) {
98479847
// Surface Pro models (like Pro 8) and Lenovo models, like 21CNS0YA0V, 21KSCTO1WW, 20LTA50SCD, 20U8S18J00, etc... miss dbDefault and related sb efi vars
9848-
// Case-insensitive check added here
98499848
if (ascii_string_equals_ci(manufacturer_str, "lenovo") || ascii_string_equals_ci(manufacturer_str, "surface pro"))
98509849
detection_result = false;
98519850
}
@@ -9875,13 +9874,13 @@ struct VM {
98759874
}
98769875
for (const char* p : vendor_list_ascii) if (buffer_contains_ascii_ci(buf, len, p)) return true;
98779876
return false;
9878-
};
9877+
};
98799878
auto buffer_has_specific_vendor = [&](BYTE* buf, SIZE_T len, const char* a, const wchar_t* w) noexcept -> bool {
98809879
if (!buf || len == 0) return false;
98819880
if ((len >= 2) && ((len % 2) == 0) && w) { const WCHAR* wp = reinterpret_cast<const WCHAR*>(buf); if (buffer_contains_utf16le_ci(wp, len / sizeof(WCHAR), w)) return true; }
98829881
if (a) if (buffer_contains_ascii_ci(buf, len, a)) return true;
98839882
return false;
9884-
};
9883+
};
98859884

98869885
const bool pk_def_has_vendor = buffer_has_any_vendor(pk_default_buf, pk_default_len);
98879886
const bool kek_def_has_vendor = buffer_has_any_vendor(kek_default_buf, kek_default_len);

0 commit comments

Comments
 (0)