summaryrefslogtreecommitdiff
path: root/shell/source/win32
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-12 22:51:51 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-12 22:51:51 +0200
commit7677eafaabb29b2bc3f136144d22e3e07e0e0790 (patch)
tree473d8bc3d40431c58e8ca12d05fb6b20f9879032 /shell/source/win32
parent9e20e9a7b88d64c521c55bde8b4e5f10578d6ccf (diff)
warning C4267: conversion from 'size_t' to 'DWORD'
Change-Id: If6cbb99b59b14fc7911c0fe76f44ac21b0db5042
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);
}