Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
72f17419
Commit
72f17419
authored
Mar 08, 2012
by
Owen Rudge
Committed by
Alexandre Julliard
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Check both min and max ranges in IsDateInValidRange.
parent
e3ab9936
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
monthcal.c
dlls/comctl32/monthcal.c
+5
-2
No files found.
dlls/comctl32/monthcal.c
View file @
72f17419
...
...
@@ -353,16 +353,19 @@ 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
)
{
else
{
if
(
infoPtr
->
rangeValid
&
GDTR_MAX
)
{
if
((
MONTHCAL_CompareSystemTime
(
date
,
&
infoPtr
->
maxDate
)
==
1
))
{
fix_st
=
&
infoPtr
->
maxDate
;
}
}
else
if
(
infoPtr
->
rangeValid
&
GDTR_MIN
)
{
if
(
infoPtr
->
rangeValid
&
GDTR_MIN
)
{
if
((
MONTHCAL_CompareSystemTime
(
date
,
&
infoPtr
->
minDate
)
==
-
1
))
{
fix_st
=
&
infoPtr
->
minDate
;
}
}
}
if
(
fix
&&
fix_st
)
{
date
->
wYear
=
fix_st
->
wYear
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment