summaryrefslogtreecommitdiff
path: root/shell/source/win32
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32')
-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 3824dc5f16a0..06f824015e7c 100644
--- a/shell/source/win32/shlxthandler/util/registry.cxx
+++ b/shell/source/win32/shlxthandler/util/registry.cxx
@@ -64,7 +64,8 @@ bool SetRegistryKey(HKEY RootKey, const char* KeyName, const char* ValueName, co
if (ERROR_SUCCESS == rc)
{
rc = RegSetValueExA(
- hSubKey, ValueName, 0, REG_SZ, reinterpret_cast<const BYTE*>(Value), strlen(Value) + 1);
+ hSubKey, ValueName, 0, REG_SZ, reinterpret_cast<const BYTE*>(Value),
+ static_cast<DWORD>(strlen(Value) + 1));
RegCloseKey(hSubKey);
}