comctl32/monthcal: Really use locale data for all days.

This commit is contained in:
Nikolay Sivov 2009-10-09 00:47:42 +04:00 committed by Alexandre Julliard
parent c93a520783
commit 08b6bff386
1 changed files with 1 additions and 1 deletions

View File

@ -2107,7 +2107,7 @@ static void MONTHCAL_UpdateSize(MONTHCAL_INFO *infoPtr)
size.cx = sz.cx = 0;
for (i = 0; i < 7; i++)
{
if(GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SABBREVDAYNAME1,
if(GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SABBREVDAYNAME1 + i,
buff, countof(buff)))
{
GetTextExtentPoint32W(hdc, buff, lstrlenW(buff), &sz);