summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2003-07-22 23:50:16 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2003-07-22 23:50:16 (GMT)
commit357da0177eba27ebbbe1423533bcbc8e30cd2e52 (patch)
treef2d5ba9e207fc78c67f8bdde67182e548c3dbac6 /win
parent89212c6e7322ff64c4b8b3b0faaf459d9371e464 (diff)
downloadtcl-357da0177eba27ebbbe1423533bcbc8e30cd2e52.zip
tcl-357da0177eba27ebbbe1423533bcbc8e30cd2e52.tar.gz
tcl-357da0177eba27ebbbe1423533bcbc8e30cd2e52.tar.bz2
* win/tclWinReg.c (OpenSubKey): Backported fix for bug 775976
which causes the registry set command to fail when built with VC7.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinReg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c
index 50aa8e6..9ae0b73 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.21.2.1 2003/07/22 23:50:17 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) {