mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
[INTL]
Fix GetDateSetting() overruns. Patch by Victor Martinez Calvo. CORE-13387 svn path=/trunk/; revision=74940
This commit is contained in:
parent
d6f5debb07
commit
2c1c8e2f94
|
@ -520,9 +520,9 @@ GetDateSetting(
|
||||||
HWND hwndDlg,
|
HWND hwndDlg,
|
||||||
PGLOBALDATA pGlobalData)
|
PGLOBALDATA pGlobalData)
|
||||||
{
|
{
|
||||||
WCHAR szLongDateFormat[MAX_SAMPLES_STR_SIZE];
|
WCHAR szLongDateFormat[MAX_LONGDATEFORMAT];
|
||||||
WCHAR szShortDateFormat[MAX_SAMPLES_STR_SIZE];
|
WCHAR szShortDateFormat[MAX_SHORTDATEFORMAT];
|
||||||
WCHAR szDateSeparator[MAX_SAMPLES_STR_SIZE];
|
WCHAR szDateSeparator[MAX_DATESEPARATOR];
|
||||||
|
|
||||||
if (!SetLongDateFormat(hwndDlg, szLongDateFormat) ||
|
if (!SetLongDateFormat(hwndDlg, szLongDateFormat) ||
|
||||||
!SetShortDateFormat(hwndDlg, szShortDateFormat) ||
|
!SetShortDateFormat(hwndDlg, szShortDateFormat) ||
|
||||||
|
|
Loading…
Reference in a new issue