Skip to content

Commit d617def

Browse files
Revert "Win32: add detection for early Win10 preview builds (actually final this time)"
This reverts commit 8262e26.
1 parent 8262e26 commit d617def

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/drivers/platform_win32.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,7 @@ 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-
/* Detect Windows 10 from the first NT 10.0-based preview build */
471-
else if (vi.dwBuildNumber >= 9888)
470+
else if (vi.dwBuildNumber >= 10240)
472471
_len = strlcpy(s, "Windows 10", len);
473472
else
474473
_len = snprintf(s, len, "Windows NT kernel %lu.%lu",

0 commit comments

Comments
 (0)