GetDateFormat expects size in characters

svn path=/trunk/; revision=64841
This commit is contained in:
Christoph von Wittich 2014-10-20 08:47:57 +00:00
parent 851df094ac
commit c453a6b8d7

View file

@ -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;