summaryrefslogtreecommitdiffstats
path: root/win/tkWinInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-20 12:40:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-20 12:40:31 (GMT)
commitea636c850864a7b4a1086407483247fa2178a9c9 (patch)
tree8bc541336b820ba0941bd90ddbfa19829f5fc52e /win/tkWinInit.c
parent81c7048be7ecd58222b691440b3d520d956f339a (diff)
parent30fc8288f30a0b85762005fe52e18d254044d43b (diff)
downloadtk-ea636c850864a7b4a1086407483247fa2178a9c9.zip
tk-ea636c850864a7b4a1086407483247fa2178a9c9.tar.gz
tk-ea636c850864a7b4a1086407483247fa2178a9c9.tar.bz2
Merge 8.6
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r--win/tkWinInit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c
index 2f9815c..977474c 100644
--- a/win/tkWinInit.c
+++ b/win/tkWinInit.c
@@ -196,7 +196,7 @@ TkWin32ErrorObj(
*p = '\0';
}
- Tcl_WinTCharToUtf(lpBuffer, wcslen(lpBuffer) * sizeof (WCHAR), &ds);
+ Tcl_WinTCharToUtf(lpBuffer, -1, &ds);
errPtr = Tcl_NewStringObj(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds));
Tcl_DStringFree(&ds);