Commit 194bac77 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Monthcal_SetRange: Set proper value for min date.

parent c30a546e
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment