Skip to content

Commit 3265ff6

Browse files
committed
fix: partial windows fix 4
1 parent 152b1c6 commit 3265ff6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/vmaware.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12046,11 +12046,11 @@ struct VM {
1204612046
template <typename ...Args>
1204712047
static std::string brand(Args ...args) {
1204812048
const flagset flags = core::arg_handler(args...);
12049-
return brand(flags);
12049+
return internal_brand(flags);
1205012050
}
1205112051

1205212052

12053-
static std::string brand(const flagset& flags = core::generate_default()) {
12053+
static std::string internal_brand(const flagset& flags = core::generate_default()) {
1205412054
// is the multiple setting flag enabled?
1205512055
const bool is_multiple = core::is_enabled(flags, MULTIPLE);
1205612056

@@ -12063,7 +12063,6 @@ struct VM {
1206312063
}
1206412064

1206512065

12066-
1206712066
/**
1206812067
* @brief Detect if running inside a VM
1206912068
* @param any flag combination in VM structure or nothing
@@ -12509,7 +12508,7 @@ struct VM {
1250912508

1251012509

1251112510
static std::string conclusion(const flagset &flags = core::generate_default()) {
12512-
std::string brand_tmp = brand(flags);
12511+
std::string brand_tmp = internal_brand(flags);
1251312512
const u8 percent_tmp = percentage(flags);
1251412513
const bool has_hardener = is_hardened();
1251512514

@@ -12692,7 +12691,7 @@ struct VM {
1269212691

1269312692
// having this design avoids some niche errors
1269412693
void initialise(const flagset &flags) {
12695-
brand = VM::brand(flags);
12694+
brand = VM::internal_brand(flags);
1269612695
type = VM::type(flags);
1269712696
conclusion = VM::conclusion(flags);
1269812697
is_vm = VM::detect(flags);

0 commit comments

Comments
 (0)