Skip to content

Commit 8262e26

Browse files
PoloniumRainLibretroAdmin
authored andcommitted
Win32: add detection for early Win10 preview builds (actually final this time)
1 parent 7523e11 commit 8262e26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)