mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[INTL]
Prevent wcsncopy overflows in GetCurrencySettings(). Patch by Victor Martinez Calvo. CORE-13379 svn path=/trunk/; revision=74938
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user