mirror of
https://github.com/reactos/reactos.git
synced 2024-07-09 06:05:11 +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,
|
GetSelectedComboBoxText(hwndDlg,
|
||||||
IDC_CURRENCYSYMBOL,
|
IDC_CURRENCYSYMBOL,
|
||||||
szCurrSymbol,
|
szCurrSymbol,
|
||||||
MAX_SAMPLES_STR_SIZE);
|
MAX_CURRSYMBOL);
|
||||||
|
|
||||||
if (szCurrSymbol[0] == L'\0')
|
if (szCurrSymbol[0] == L'\0')
|
||||||
{
|
{
|
||||||
|
@ -302,7 +302,7 @@ GetCurrencySetting(
|
||||||
GetSelectedComboBoxText(hwndDlg,
|
GetSelectedComboBoxText(hwndDlg,
|
||||||
IDC_CURRENCYDECSEP,
|
IDC_CURRENCYDECSEP,
|
||||||
szCurrDecimalSep,
|
szCurrDecimalSep,
|
||||||
MAX_SAMPLES_STR_SIZE);
|
MAX_CURRDECIMALSEP);
|
||||||
|
|
||||||
if (szCurrDecimalSep[0] == L'\0')
|
if (szCurrDecimalSep[0] == L'\0')
|
||||||
{
|
{
|
||||||
|
@ -320,7 +320,7 @@ GetCurrencySetting(
|
||||||
GetSelectedComboBoxText(hwndDlg,
|
GetSelectedComboBoxText(hwndDlg,
|
||||||
IDC_CURRENCYGRPSEP,
|
IDC_CURRENCYGRPSEP,
|
||||||
szCurrThousandSep,
|
szCurrThousandSep,
|
||||||
MAX_SAMPLES_STR_SIZE);
|
MAX_CURRTHOUSANDSEP);
|
||||||
|
|
||||||
if (szCurrThousandSep[0] == L'\0')
|
if (szCurrThousandSep[0] == L'\0')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue