Skip to content

Commit b880d01

Browse files
committed
fix: unknown brand inclusion in multiple message
1 parent 923cfbe commit b880d01

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/vmaware.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11845,8 +11845,14 @@ struct VM {
1184511845
merge(TMP_VMWARE_HARD, TMP_ESX, TMP_VMWARE_HARD);
1184611846
merge(TMP_VMWARE_HARD, TMP_GSX, TMP_VMWARE_HARD);
1184711847
merge(TMP_VMWARE_HARD, TMP_WORKSTATION, TMP_VMWARE_HARD);
11848-
11848+
1184911849
if (active_count > 1) {
11850+
// remove "Unknown" if detected with other brands
11851+
const int idx = find_index(brands::NULL_BRAND);
11852+
if (idx != -1) {
11853+
remove_at(idx);
11854+
}
11855+
1185011856
std::sort(active_brands.begin(), active_brands.begin() + static_cast<std::ptrdiff_t>(active_count), [](
1185111857
const brand_element_t& a,
1185211858
const brand_element_t& b

0 commit comments

Comments
 (0)