Show Windows 11 version string

This commit is contained in:
twinaphex 2021-10-05 04:37:01 +02:00
parent 69ab4eee7a
commit 7e6a56dafc

View File

@ -329,7 +329,9 @@ static void frontend_win32_get_os(char *s, size_t len, int *major, int *minor)
switch (vi.dwMajorVersion)
{
case 10:
if (server)
if (atoi(buildStr) >= 21996)
strcpy_literal(s, "Windows 11");
else if (server)
strcpy_literal(s, "Windows Server 2016");
else
strcpy_literal(s, "Windows 10");