diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-20 12:40:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-20 12:40:31 (GMT) |
commit | ea636c850864a7b4a1086407483247fa2178a9c9 (patch) | |
tree | 8bc541336b820ba0941bd90ddbfa19829f5fc52e /win/tkWinInit.c | |
parent | 81c7048be7ecd58222b691440b3d520d956f339a (diff) | |
parent | 30fc8288f30a0b85762005fe52e18d254044d43b (diff) | |
download | tk-ea636c850864a7b4a1086407483247fa2178a9c9.zip tk-ea636c850864a7b4a1086407483247fa2178a9c9.tar.gz tk-ea636c850864a7b4a1086407483247fa2178a9c9.tar.bz2 |
Merge 8.6
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r-- | win/tkWinInit.c | 2 |
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); |