Skip to content

Commit

Permalink
Fix build number error #60.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackINT3 committed Nov 2, 2021
1 parent 11fbcc7 commit 09422a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OpenArk/common/win-wrapper/win-wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ std::string OsWinVersionInfo()
GetVersionEx((OSVERSIONINFO *)&os);
if (major == 10 && minor == 0) {
if (os.dwPlatformId == VER_PLATFORM_WIN32_NT) {
if (release > 19043) winver = "Windows 11";
if (release >= 22000) winver = "Windows 11";
else winver = "Windows 10";
} else {
switch (release) {
Expand Down Expand Up @@ -790,6 +790,7 @@ std::string OsReleaseNumber()
std::make_pair(19041, "2004"),
std::make_pair(19042, "20H2"),
std::make_pair(19043, "21H1"),
std::make_pair(19044, "21H2"),
std::make_pair(22000, "21H2"),
};
std::map<DWORD, std::string> tables(pairs, pairs + _countof(pairs));
Expand Down
1 change: 1 addition & 0 deletions src/OpenArkDrv/common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ NTOS_VERSION_X OsNtVersion()
if (info.dwBuildNumber == 19041) return _NTOS_WIN10_2004;
if (info.dwBuildNumber == 19042) return _NTOS_WIN10_20H2;
if (info.dwBuildNumber == 19043) return _NTOS_WIN10_21H1;
if (info.dwBuildNumber == 19043) return _NTOS_WIN10_21H2;
if (info.dwBuildNumber == 22000) return _NTOS_WIN11_21H2;
}
default:
Expand Down
1 change: 1 addition & 0 deletions src/OpenArkDrv/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ typedef enum {
_NTOS_WIN10_2004, //19041
_NTOS_WIN10_20H2, //19042
_NTOS_WIN10_21H1, //19043
_NTOS_WIN10_21H2, //19044
_NTOS_WIN11_21H2, //22000
} NTOS_VERSION_X, *PNTOS_VERSION_X;

Expand Down

0 comments on commit 09422a2

Please sign in to comment.