Skip to content

Commit

Permalink
fixed warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Oct 11, 2024
1 parent e1b893e commit d21c0c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ bool are_perms_required(const VM::enum_flags flag) {
default: return false;
}
#else
(void)flag;
return false;
#endif
}
Expand Down
3 changes: 2 additions & 1 deletion src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,6 @@ struct VM {
auto is_event_log_hyperv = []() -> bool {
std::wstring logName = L"Microsoft-Windows-Kernel-PnP/Configuration";
std::vector<std::wstring> searchStrings = { L"Virtual_Machine", L"VMBUS" };

return (util::query_event_logs(logName, searchStrings));
};

Expand All @@ -1753,6 +1752,8 @@ struct VM {
if (result) {
core_debug("HYPER_X: root partition returned true");
}

return result;
};


Expand Down

0 comments on commit d21c0c4

Please sign in to comment.