diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-11 19:24:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-11 19:24:12 (GMT) |
commit | c31e9810372c9b7fb8b61dd0840ed8f87ecf79f0 (patch) | |
tree | 37f171a4b263d41bda7476cc74cbf8bfc82833d6 /win/tclWinReg.c | |
parent | 024b92cb1e7bd2653beee2d010f1baf39010cacc (diff) | |
download | tcl-c31e9810372c9b7fb8b61dd0840ed8f87ecf79f0.zip tcl-c31e9810372c9b7fb8b61dd0840ed8f87ecf79f0.tar.gz tcl-c31e9810372c9b7fb8b61dd0840ed8f87ecf79f0.tar.bz2 |
[Bug #3362446]: registry keys command fails with 8.5/8.6. Follow Microsofts example better in order to prevent problems when using HKEY_PERFORMANCE_DATA.
Forgot one important '%'
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r-- | win/tclWinReg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |