From f8d2b5678b57bd93dc5183920a3c448bc19be302 Mon Sep 17 00:00:00 2001 From: kernel <77142078+kernelwernel@users.noreply.github.com> Date: Sun, 6 Oct 2024 00:35:40 +0100 Subject: [PATCH] is_hyperv fix and padding fix --- src/vmaware.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vmaware.hpp b/src/vmaware.hpp index 0e0dc48..fc37c98 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -1785,7 +1785,7 @@ struct VM { } } - memo::hyperv::store(is_hyperv); + memo::hyperv::store(false); return false; #endif } @@ -10336,13 +10336,13 @@ struct VM { struct vmaware { + std::string brand; + std::string type; + std::string conclusion; bool is_vm; u8 percentage; u8 detected_count; u8 technique_count; - std::string brand; - std::string type; - std::string conclusion; vmaware() = default; @@ -10350,13 +10350,13 @@ struct VM { vmaware(Args ...args) { flagset flags = core::arg_handler(args...); + brand = VM::brand(flags); + type = VM::type(flags); + conclusion = VM::conclusion(flags); is_vm = VM::detect(flags); percentage = VM::percentage(flags); detected_count = VM::detected_count(flags); technique_count = VM::technique_count; - brand = VM::brand(flags); - type = VM::type(flags); - conclusion = VM::conclusion(flags); } }; };