From 194bac77816f2089b847795d48037d02da3ce5bd Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Thu, 21 Oct 2004 22:28:12 +0000 Subject: [PATCH] Monthcal_SetRange: Set proper value for min date. --- dlls/comctl32/monthcal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 904f7f4ba32..19a5d3147d3 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -975,11 +975,11 @@ MONTHCAL_SetRange(HWND hwnd, WPARAM wParam, LPARAM lParam) } if(wParam & GDTR_MIN) { if(MONTHCAL_ValidateTime(lprgSysTimeArray[0])) { - MONTHCAL_CopyTime(&lprgSysTimeArray[0], &infoPtr->maxDate); + MONTHCAL_CopyTime(&lprgSysTimeArray[0], &infoPtr->minDate); infoPtr->rangeValid|=GDTR_MIN; } else { GetSystemTime(&infoPtr->todaysDate); - MONTHCAL_CopyTime(&infoPtr->todaysDate, &infoPtr->maxDate); + MONTHCAL_CopyTime(&infoPtr->todaysDate, &infoPtr->minDate); } }