summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-28 14:53:09 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-28 14:57:35 (GMT)
commit0bb22cfabed29e9e2ce6f1b3a551f7ea68311390 (patch)
tree8fed79885deba2989b363782ec1cd18ba0b96c04 /Source/cmGlobalVisualStudioGenerator.cxx
parent75191fa31281732ddbfd621af80bc188de9cd097 (diff)
downloadCMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.zip
CMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.tar.gz
CMake-0bb22cfabed29e9e2ce6f1b3a551f7ea68311390.tar.bz2
Avoid passing string literal to char* type
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 7696e6c..449d090 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -611,8 +611,9 @@ void WriteVSMacrosFileRegistryEntry(
{
// Create the subkey and set the values of interest:
HKEY hsubkey = NULL;
- result = RegCreateKeyEx(hkey, nextAvailableSubKeyName.c_str(), 0, "", 0,
- KEY_READ|KEY_WRITE, 0, &hsubkey, 0);
+ char lpClass[] = "";
+ result = RegCreateKeyEx(hkey, nextAvailableSubKeyName.c_str(), 0,
+ lpClass, 0, KEY_READ|KEY_WRITE, 0, &hsubkey, 0);
if (ERROR_SUCCESS == result)
{
DWORD dw = 0;