-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:PSAssigned to OTP team PSAssigned to OTP team PS
Description
Describe the bug
os:version() gives always {6,2,9200} on windows higher than 8.1
To Reproduce
os:version() on Windows 11, Version 25H2
Expected behavior
os:version() on Windows 11, Version 25H2 should be {10,0,26200}
Versionnummbers:
https://www.gaijin.at/de/infos/windows-versionsnummern
Affected versions
OTP Versions that support windows
Additional context
In Windows 8.1 and later, the GetVersion and GetVersionEx functions have been deprecated.
https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexa
.../win32/sys.c
.....
erts_sys_pre_init(void)
{
erts_thr_init_data_t eid = ERTS_THR_INIT_DATA_DEF_INITER;
int_os_version.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&int_os_version);
.....
Metadata
Metadata
Assignees
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:PSAssigned to OTP team PSAssigned to OTP team PS