summaryrefslogtreecommitdiff
path: root/shell/source/win32/shlxthandler/util/registry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32/shlxthandler/util/registry.cxx')
-rw-r--r--shell/source/win32/shlxthandler/util/registry.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/shlxthandler/util/registry.cxx b/shell/source/win32/shlxthandler/util/registry.cxx
index ff2d60ba5c0e..3824dc5f16a0 100644
--- a/shell/source/win32/shlxthandler/util/registry.cxx
+++ b/shell/source/win32/shlxthandler/util/registry.cxx
@@ -57,8 +57,9 @@ bool SetRegistryKey(HKEY RootKey, const char* KeyName, const char* ValueName, co
HKEY hSubKey;
// open or create the desired key
+ char dummy[] = "";
int rc = RegCreateKeyExA(
- RootKey, KeyName, 0, "", REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &hSubKey, 0);
+ RootKey, const_cast<char*>(KeyName), 0, dummy, REG_OPTION_NON_VOLATILE, KEY_WRITE, 0, &hSubKey, 0);
if (ERROR_SUCCESS == rc)
{