diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-05-01 20:09:33 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-05-01 20:09:33 +0300 |
| commit | 638ed16b9f3016e6e7bd7036ac1ac114425bdb76 (patch) | |
| tree | 081d9cb34ed46a58dac95059396d2725545e063d /src | |
| parent | 9c7083d03a6276980c727ea28a7c6a6d2248c68d (diff) | |
22000 is also Windows 11
Diffstat (limited to 'src')
| -rw-r--r-- | src/mir_core/src/Windows/winver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/winver.cpp b/src/mir_core/src/Windows/winver.cpp index d43cfd3fa3..27a76dbb2e 100644 --- a/src/mir_core/src/Windows/winver.cpp +++ b/src/mir_core/src/Windows/winver.cpp @@ -181,7 +181,7 @@ MIR_CORE_DLL(BOOL) OS_GetDisplayString(char *buf, size_t bufSize) // Test for the specific product.
if (osvi.dwMajorVersion >= 6) {
- int iVersion = (osvi.dwBuildNumber > 22000) ? 11 : 10;
+ int iVersion = (osvi.dwBuildNumber >= 22000) ? 11 : 10;
if (osvi.dwMajorVersion == 10) {
if (osvi.wProductType == VER_NT_WORKSTATION)
ret.AppendFormat("Windows %d ", iVersion);
|
