diff options
author | dgp <dgp@users.sourceforge.net> | 2012-07-16 19:35:25 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-07-16 19:35:25 (GMT) |
commit | b0d1d281ef9419d8d98666c18ebfb311af336fcb (patch) | |
tree | 9dbe96b5000c5c159fff3b670f70d4152d8d297d /win | |
parent | 5bf39fadb4f37e8a60c00b5910911be110cb5406 (diff) | |
parent | 589aece81b85ef43d31d0172816dc721986d423f (diff) | |
download | tcl-b0d1d281ef9419d8d98666c18ebfb311af336fcb.zip tcl-b0d1d281ef9419d8d98666c18ebfb311af336fcb.tar.gz tcl-b0d1d281ef9419d8d98666c18ebfb311af336fcb.tar.bz2 |
merge 8.5
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPipe.c | 2 | ||||
-rw-r--r-- | win/tclWinReg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index 9a529d2..b6764d4 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1707,7 +1707,7 @@ TclpCreateCommandChannel( * unique, in case channels share handles (stdin/stdout). */ - sprintf(channelName, "file" TCL_I_MODIFIER "x", (size_t)infoPtr); + sprintf(channelName, "file%" TCL_I_MODIFIER "x", (size_t)infoPtr); infoPtr->channel = Tcl_CreateChannel(&pipeChannelType, channelName, (ClientData) infoPtr, infoPtr->validMask); diff --git a/win/tclWinReg.c b/win/tclWinReg.c index 343a22f..a6ce2ce 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -794,7 +794,7 @@ GetValue( * HKEY_PERFORMANCE_DATA */ - length *= 2; + length = Tcl_DStringLength(&data) * (regWinProcs->useWide ? 1 : 2); Tcl_DStringSetLength(&data, (int) length * (regWinProcs->useWide ? 2 : 1)); result = (*regWinProcs->regQueryValueExProc)(key, (char *) nativeValue, NULL, &type, (BYTE *) Tcl_DStringValue(&data), &length); |