Skip to content

Commit

Permalink
padding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Oct 8, 2024
1 parent c2519b5 commit 8edc0ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ struct VM {
core::add(HYPERV);
} else {
state = hyperx_state::HYPERV_ARTIFACT_VM;
core::add(HYPERV_ARTIFACT_VM);
core::add(HYPERV_ARTIFACT);
}

memo::hyperx::store(state);
Expand Down Expand Up @@ -10348,15 +10348,15 @@ struct VM {
else { return inside_vm; }
}


#pragma pack(push, 1)
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;

template <typename ...Args>
vmaware(Args ...args) {
Expand All @@ -10371,6 +10371,7 @@ struct VM {
technique_count = VM::technique_count;
}
};
#pragma pack(pop)
};

MSVC_ENABLE_WARNING(ASSIGNMENT_OPERATOR NO_INLINE_FUNC SPECTRE)
Expand Down

0 comments on commit 8edc0ae

Please sign in to comment.