comctl32/monthcal: Fix hit test for previous month.

This commit is contained in:
Nikolay Sivov 2011-03-26 04:05:59 +03:00 committed by Alexandre Julliard
parent 2f65a83370
commit eb2dc5c900
1 changed files with 1 additions and 1 deletions

View File

@ -1727,7 +1727,7 @@ MONTHCAL_HitTest(const MONTHCAL_INFO *infoPtr, MCHITTESTINFO *lpht)
{
htinfo.uHit = MCHT_CALENDARDATEPREV;
MONTHCAL_GetPrevMonth(&htinfo.st);
htinfo.st.wDay = MONTHCAL_MonthLength(lpht->st.wMonth, lpht->st.wYear) + day;
htinfo.st.wDay = MONTHCAL_MonthLength(htinfo.st.wMonth, htinfo.st.wYear) + day;
}
else if (day > MONTHCAL_MonthLength(ht_month.wMonth, ht_month.wYear))
{