mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 20:25:17 +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:
parent
101ccf86e2
commit
b3b8277a07
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue