Index: Source/cmGlobalVisualStudioGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalVisualStudioGenerator.cxx,v
retrieving revision 1.20
diff -u -r1.20 cmGlobalVisualStudioGenerator.cxx
--- Source/cmGlobalVisualStudioGenerator.cxx	1 Oct 2009 14:27:02 -0000	1.20
+++ Source/cmGlobalVisualStudioGenerator.cxx	2 Oct 2009 07:39:33 -0000
@@ -618,7 +618,7 @@
     {
     // Create the subkey and set the values of interest:
     HKEY hsubkey = NULL;
-    result = RegCreateKeyEx(hkey, nextAvailableSubKeyName.c_str(), 0, "", 0,
+    result = RegCreateKeyEx(hkey, nextAvailableSubKeyName.c_str(), 0, NULL, 0,
       KEY_READ|KEY_WRITE, 0, &hsubkey, 0);
     if (ERROR_SUCCESS == result)
       {
Index: Source/cmWin32ProcessExecution.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmWin32ProcessExecution.cxx,v
retrieving revision 1.34
diff -u -r1.34 cmWin32ProcessExecution.cxx
--- Source/cmWin32ProcessExecution.cxx	28 Sep 2009 15:42:49 -0000	1.34
+++ Source/cmWin32ProcessExecution.cxx	2 Oct 2009 07:41:40 -0000
@@ -284,7 +284,8 @@
 {
   PROCESS_INFORMATION piProcInfo;
   STARTUPINFO siStartInfo;
-  char *s1=0,*s2=0, *s3 = " /c ";
+  char *s1=0,*s2=0;
+  const char *s3 = " /c ";
   int i = GetEnvironmentVariable("COMSPEC",NULL,0);
   if (i)
     {
Index: Source/kwsys/Registry.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/Registry.cxx,v
retrieving revision 1.25
diff -u -r1.25 Registry.cxx
--- Source/kwsys/Registry.cxx	28 Sep 2009 15:37:22 -0000	1.25
+++ Source/kwsys/Registry.cxx	2 Oct 2009 07:33:54 -0000
@@ -402,7 +402,7 @@
     else
       {
       res = ( RegCreateKeyEx(scope, str.str().c_str(),
-          0, "", REG_OPTION_NON_VOLATILE, KEY_READ|KEY_WRITE,
+          0, NULL, REG_OPTION_NON_VOLATILE, KEY_READ|KEY_WRITE,
           NULL, &this->HKey, &dwDummy) == ERROR_SUCCESS );
       }
     if ( res != 0 )
Index: Source/kwsys/SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.253
diff -u -r1.253 SystemTools.cxx
--- Source/kwsys/SystemTools.cxx	28 Sep 2009 15:37:23 -0000	1.253
+++ Source/kwsys/SystemTools.cxx	2 Oct 2009 07:33:59 -0000
@@ -732,7 +732,7 @@
   if(RegCreateKeyEx(primaryKey, 
                     second.c_str(), 
                     0, 
-                    "",
+                    NULL,
                     REG_OPTION_NON_VOLATILE,
                     SystemToolsMakeRegistryMode(KEY_WRITE, view),
                     NULL,
