diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 13:30:39 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:44 +0100 |
commit | 064d8f1405a6b64766eee3d73136eb2f3acc7509 (patch) | |
tree | 6bdaa2d3028b4fbb3be9c38588f604be29ffe3d3 /shell | |
parent | bd6757d60d2f126ad0ba34144db3a6660a786ad5 (diff) |
WaE: invalid conversion from 'const char*' to 'LPSTR'
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/shlxthandler/util/registry.cxx | 3 |
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) { |