Monthcal_SetRange: Set proper value for min date.

This commit is contained in:
Uwe Bonnes 2004-10-21 22:28:12 +00:00 committed by Alexandre Julliard
parent c30a546e47
commit 194bac7781
1 changed files with 2 additions and 2 deletions

View File

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