summaryrefslogtreecommitdiffstats
path: root/win/tclWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:33:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-06 17:33:59 (GMT)
commitba6fe47daab7593fc0e2d80184a15c791e73dcf7 (patch)
treeae25c963f50994005c291536ab2193e02fd555b0 /win/tclWinInit.c
parent507af3b425099da840b4f48b868dbf3cd33ed7b6 (diff)
parentcf560b3fb9c317bb0e6a6d458d5467aae8fc6a79 (diff)
downloadtcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.zip
tcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.tar.gz
tcl-ba6fe47daab7593fc0e2d80184a15c791e73dcf7.tar.bz2
Merge 8.6
Diffstat (limited to 'win/tclWinInit.c')
-rw-r--r--win/tclWinInit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 77ee107..a11e732 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -485,6 +485,9 @@ TclpSetVariables(
TCL_GLOBAL_ONLY);
Tcl_SetVar2(interp, "tcl_platform", "os",
"Windows NT", TCL_GLOBAL_ONLY);
+ if (osInfo.dwMajorVersion == 10 && osInfo.dwBuildNumber >= 22000) {
+ osInfo.dwMajorVersion = 11;
+ }
wsprintfA(buffer, "%d.%d", osInfo.dwMajorVersion, osInfo.dwMinorVersion);
Tcl_SetVar2(interp, "tcl_platform", "osVersion", buffer, TCL_GLOBAL_ONLY);
if (sys.oemId.wProcessorArchitecture < NUMPROCESSORS) {