Prevent wcsncopy overflows in GetCurrencySettings().
Patch by Victor Martinez Calvo.
CORE-13379

svn path=/trunk/; revision=74938
This commit is contained in:
Eric Kohl 2017-06-07 13:37:43 +00:00
parent 101ccf86e2
commit b3b8277a07

View file

@ -279,7 +279,7 @@ GetCurrencySetting(
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYSYMBOL,
szCurrSymbol,
MAX_SAMPLES_STR_SIZE);
MAX_CURRSYMBOL);
if (szCurrSymbol[0] == L'\0')
{
@ -302,7 +302,7 @@ GetCurrencySetting(
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYDECSEP,
szCurrDecimalSep,
MAX_SAMPLES_STR_SIZE);
MAX_CURRDECIMALSEP);
if (szCurrDecimalSep[0] == L'\0')
{
@ -320,7 +320,7 @@ GetCurrencySetting(
GetSelectedComboBoxText(hwndDlg,
IDC_CURRENCYGRPSEP,
szCurrThousandSep,
MAX_SAMPLES_STR_SIZE);
MAX_CURRTHOUSANDSEP);
if (szCurrThousandSep[0] == L'\0')
{