mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[cmd]
GetDateFormat expects size in characters svn path=/trunk/; revision=64841
This commit is contained in:
parent
851df094ac
commit
c453a6b8d7
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ GetDateString(VOID)
|
|||
INT len;
|
||||
GetLocalTime(&t);
|
||||
|
||||
len = GetDateFormat(LOCALE_USER_DEFAULT, 0, &t, _T("ddd"), szDate, sizeof szDate);
|
||||
len = GetDateFormat(LOCALE_USER_DEFAULT, 0, &t, _T("ddd"), szDate, sizeof(szDate) / sizeof(szDate[0]));
|
||||
szDate[len - 1] = _T(' ');
|
||||
FormatDate(&szDate[len], &t, TRUE);
|
||||
return szDate;
|
||||
|
|
Loading…
Reference in a new issue