mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
comctl32/monthcal: Check both min and max ranges in IsDateInValidRange.
This commit is contained in:
parent
e3ab993647
commit
72f174192b
@ -353,14 +353,17 @@ static BOOL MONTHCAL_IsDateInValidRange(const MONTHCAL_INFO *infoPtr,
|
||||
else if(MONTHCAL_CompareSystemTime(date, &min_allowed_date) == -1) {
|
||||
fix_st = &min_allowed_date;
|
||||
}
|
||||
else if(infoPtr->rangeValid & GDTR_MAX) {
|
||||
if((MONTHCAL_CompareSystemTime(date, &infoPtr->maxDate) == 1)) {
|
||||
fix_st = &infoPtr->maxDate;
|
||||
else {
|
||||
if(infoPtr->rangeValid & GDTR_MAX) {
|
||||
if((MONTHCAL_CompareSystemTime(date, &infoPtr->maxDate) == 1)) {
|
||||
fix_st = &infoPtr->maxDate;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(infoPtr->rangeValid & GDTR_MIN) {
|
||||
if((MONTHCAL_CompareSystemTime(date, &infoPtr->minDate) == -1)) {
|
||||
fix_st = &infoPtr->minDate;
|
||||
|
||||
if(infoPtr->rangeValid & GDTR_MIN) {
|
||||
if((MONTHCAL_CompareSystemTime(date, &infoPtr->minDate) == -1)) {
|
||||
fix_st = &infoPtr->minDate;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user