From 7677eafaabb29b2bc3f136144d22e3e07e0e0790 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 12 Jul 2012 22:51:51 +0200 Subject: warning C4267: conversion from 'size_t' to 'DWORD' Change-Id: If6cbb99b59b14fc7911c0fe76f44ac21b0db5042 --- shell/source/win32/shlxthandler/util/registry.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') 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(Value), strlen(Value) + 1); + hSubKey, ValueName, 0, REG_SZ, reinterpret_cast(Value), + static_cast(strlen(Value) + 1)); RegCloseKey(hSubKey); } -- cgit