summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-12 00:52:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-12 00:52:22 (GMT)
commit0d3106376c20bbe48cba344885fcad371b72b50f (patch)
tree203e75b4378b47f53d7a56c666dc9a9c58447fda /win/tclWinFile.c
parentc1b078e39707aa499f02daa1c07b4bd087f3e6e1 (diff)
downloadtcl-0d3106376c20bbe48cba344885fcad371b72b50f.zip
tcl-0d3106376c20bbe48cba344885fcad371b72b50f.tar.gz
tcl-0d3106376c20bbe48cba344885fcad371b72b50f.tar.bz2
[Bug 3185609] File normalization corner case of ... broken with -DUNICODE
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 34be41f..620c454 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -2776,9 +2776,9 @@ TclpObjNormalizePath(
* path segment and continue.
*/
- Tcl_DStringAppend(&dsNorm, (const char *)
- ((WCHAR *)(nativePath + Tcl_DStringLength(&ds))
- - dotLen), (int)(dotLen * sizeof(WCHAR)));
+ Tcl_DStringAppend(&dsNorm,
+ ((const char *) nativePath) + Tcl_DStringLength(&ds)
+ - (dotLen * sizeof(TCHAR)), (int)(dotLen * sizeof(TCHAR)));
} else {
/*
* Normal path.