diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-12-27 17:43:22 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-12-27 17:43:22 (GMT) |
| commit | 0f9810727ed2f9a8d3895f5118176e701d7028ed (patch) | |
| tree | f633f6df5a27abe6796645ad20e1b2c3d7dfef28 /win/tclWinInit.c | |
| parent | 4011362d9bd502484bb6a6e88d1e405ee27fe464 (diff) | |
| parent | 98f74013e2f489e289ad1a7da4c87dd9715110b5 (diff) | |
| download | tcl-core-tip-744.zip tcl-core-tip-744.tar.gz tcl-core-tip-744.tar.bz2 | |
Unbreak Linux/MacOS build. Merge trunkcore-tip-744
Diffstat (limited to 'win/tclWinInit.c')
| -rw-r--r-- | win/tclWinInit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinInit.c b/win/tclWinInit.c index 4823663..8e8a9df 100644 --- a/win/tclWinInit.c +++ b/win/tclWinInit.c @@ -104,7 +104,7 @@ TclGetWinInfoOnce( } tclWinInfo.longPathsSupported = 0; - if (tclWinInfo.osVersion.dwMajorVersion > 10 || + if (tclWinInfo.osVersion.dwMajorVersion > 10 || (tclWinInfo.osVersion.dwMajorVersion == 10 && tclWinInfo.osVersion.dwBuildNumber >= 14393)) { dw = sizeof(tclWinInfo.longPathsSupported); @@ -871,7 +871,7 @@ TclWinGetEnvironmentVariable( * equal to capacity, the buffer was too small. */ if (numChars < capacity) { - return fullPathPtr; + return fullPathPtr; } /* @@ -882,7 +882,7 @@ TclWinGetEnvironmentVariable( fullPathPtr = TclWinPathResize(winPathPtr, capacity); numChars = GetEnvironmentVariableW(envName, fullPathPtr, capacity); if (numChars == 0 || numChars >= capacity) { - /* Failed or still too small (shouldn't happen). */ + /* Failed or still too small (shouldn't happen). */ goto errorReturn; } |
