Skip to content

Commit c40a526

Browse files
committed
Win32: add detection for early Win10 preview builds (actually final this time)
1 parent 492b163 commit c40a526

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/drivers/platform_win32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ static size_t frontend_win32_get_os(char *s, size_t len, int *major, int *minor)
467467
/* Detect Windows 11 starting from an early leaked preview build */
468468
if (vi.dwBuildNumber >= 21996)
469469
_len = strlcpy(s, "Windows 11", len);
470-
else if (vi.dwBuildNumber >= 10240)
470+
/* Detect Windows 10 from the first NT 10.0-based preview build */
471+
else if (vi.dwBuildNumber >= 9888)
471472
_len = strlcpy(s, "Windows 10", len);
472473
else
473474
_len = snprintf(s, len, "Windows NT kernel %lu.%lu",

0 commit comments

Comments
 (0)