Skip to content

Commit

Permalink
Merge pull request #142 from NotRequiem/main
Browse files Browse the repository at this point in the history
stupid change to avoid compiler warning
  • Loading branch information
kernelwernel authored Sep 7, 2024
2 parents 402ae6d + ed89882 commit 1a98569
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1982,27 +1982,27 @@ struct VM {
typedef NTSTATUS(WINAPI* RtlGetVersionFunc)(PRTL_OSVERSIONINFOW);

const std::map<DWORD, u8> windowsVersions = {
{ 6002, 6 }, // windows vista, technically no number but this function is just for great than operations anyway so it doesn't matter
{ 7601, 7 },
{ 9200, 8 },
{ 9600, 8 },
{ 10240, 10 },
{ 10586, 10 },
{ 14393, 10 },
{ 15063, 10 },
{ 16299, 10 },
{ 17134, 10 },
{ 17763, 10 },
{ 18362, 10 },
{ 18363, 10 },
{ 19041, 10 },
{ 19042, 10 },
{ 19043, 10 },
{ 19044, 10 },
{ 19045, 10 },
{ 22000, 11 },
{ 22621, 11 },
{ 22631, 11 }
{ 6002, static_cast<u8>(6) }, // windows vista, technically no number but this function is just for great than operations anyway so it doesn't matter
{ 7601, static_cast<u8>(7) },
{ 9200, static_cast<u8>(8) },
{ 9600, static_cast<u8>(8) },
{ 10240, static_cast<u8>(10) },
{ 10586, static_cast<u8>(10) },
{ 14393, static_cast<u8>(10) },
{ 15063, static_cast<u8>(10) },
{ 16299, static_cast<u8>(10) },
{ 17134, static_cast<u8>(10) },
{ 17763, static_cast<u8>(10) },
{ 18362, static_cast<u8>(10) },
{ 18363, static_cast<u8>(10) },
{ 19041, static_cast<u8>(10) },
{ 19042, static_cast<u8>(10) },
{ 19043, static_cast<u8>(10) },
{ 19044, static_cast<u8>(10) },
{ 19045, static_cast<u8>(10) },
{ 22000, static_cast<u8>(11) },
{ 22621, static_cast<u8>(11) },
{ 22631, static_cast<u8>(11) }
};

HMODULE ntdll = LoadLibraryW(L"ntdll.dll");
Expand Down Expand Up @@ -10293,4 +10293,4 @@ const std::map<VM::enum_flags, VM::core::technique> VM::core::technique_table =
{ VM::SMBIOS_VM_BIT, { 50, VM::smbios_vm_bit, false } },
{ VM::PODMAN_FILE, { 15, VM::podman_file, true } },
{ VM::WSL_PROC, { 30, VM::wsl_proc_subdir, false } }
};
};

0 comments on commit 1a98569

Please sign in to comment.