summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-07-22 23:41:50 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-07-22 23:41:50 (GMT)
commitf7d0bec92ea0f1405a40b1f9a77d4b585fc903ba (patch)
treec112f8475afc9523fe521ee9b362ccd6a851e532
parentbc54685bd0ef224c228b2cec97e8d7abfb1bf675 (diff)
downloadtcl-f7d0bec92ea0f1405a40b1f9a77d4b585fc903ba.zip
tcl-f7d0bec92ea0f1405a40b1f9a77d4b585fc903ba.tar.gz
tcl-f7d0bec92ea0f1405a40b1f9a77d4b585fc903ba.tar.bz2
* win/tclWinReg.c (OpenSubKey): Fixed bug 775976 which causes the
registry set command to fail when built with VC7.
-rw-r--r--ChangeLog5
-rw-r--r--win/tclWinReg.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ed55a0..b0a1980 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-23 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * win/tclWinReg.c (OpenSubKey): Fixed bug 775976 which causes the
+ registry set command to fail when built with VC7.
+
2003-07-21 Mo DeJong <mdejong@users.sourceforge.net>
Check that the thread incrementing or decrementing
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 50aa8e6..fbcab54 100644
--- a/win/tclWinReg.c
+++ b/win/tclWinReg.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinReg.c,v 1.21 2003/03/03 17:12:49 dgp Exp $
+ * RCS: @(#) $Id: tclWinReg.c,v 1.22 2003/07/22 23:41:51 patthoyts Exp $
*/
#include <tclPort.h>
@@ -982,7 +982,7 @@ OpenSubKey(
keyName = (char *) Tcl_WinUtfToTChar(keyName, -1, &buf);
if (flags & REG_CREATE) {
DWORD create;
- result = (*regWinProcs->regCreateKeyExProc)(rootKey, keyName, 0, "",
+ result = (*regWinProcs->regCreateKeyExProc)(rootKey, keyName, 0, NULL,
REG_OPTION_NON_VOLATILE, mode, NULL, keyPtr, &create);
} else {
if (rootKey == HKEY_PERFORMANCE_DATA) {