summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'setup_native/source/win32/customactions/shellextensions/iconcache.cxx')
-rw-r--r--setup_native/source/win32/customactions/shellextensions/iconcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/customactions/shellextensions/iconcache.cxx b/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
index 6e87a843e39b..e037074b2220 100644
--- a/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
@@ -69,12 +69,12 @@ extern "C" UINT __stdcall RebuildShellIconCache(MSIHANDLE)
if ( !iSize )
{
iSize = GetSystemMetrics( SM_CXICON );
- itoa( iSize, szValue, 10 );
+ _itoa_s( iSize, szValue, 256, 10 );
cbValue = strlen( szValue ) + 1;
dwType = REG_SZ;
}
- itoa( iSize + 1, szTempValue, 10 );
+ _itoa_s( iSize + 1, szTempValue, 256, 10 );
lError = RegSetValueEx( hKey, TEXT("Shell Icon Size"), 0, dwType, (LPBYTE)szTempValue, strlen( szTempValue ) + 1 );
LRESULT lResult = SendMessageTimeout(