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
ca533fca
Commit
ca533fca
authored
Sep 19, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/monthcal: Fix MCM_SETSELRANGE for multiple calendars case.
parent
2c6443ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
monthcal.c
dlls/comctl32/monthcal.c
+16
-1
No files found.
dlls/comctl32/monthcal.c
View file @
ca533fca
...
...
@@ -1564,6 +1564,7 @@ static LRESULT
MONTHCAL_SetSelRange
(
MONTHCAL_INFO
*
infoPtr
,
SYSTEMTIME
*
range
)
{
SYSTEMTIME
old_range
[
2
];
INT
diff
;
TRACE
(
"%p
\n
"
,
range
);
...
...
@@ -1590,7 +1591,21 @@ MONTHCAL_SetSelRange(MONTHCAL_INFO *infoPtr, SYSTEMTIME *range)
infoPtr
->
minSel
=
range
[
1
];
infoPtr
->
maxSel
=
range
[
0
];
}
infoPtr
->
calendars
[
0
].
month
=
infoPtr
->
minSel
;
diff
=
MONTHCAL_MonthDiff
(
&
infoPtr
->
calendars
[
MONTHCAL_GetCalCount
(
infoPtr
)
-
1
].
month
,
&
infoPtr
->
maxSel
);
if
(
diff
<
0
)
{
diff
=
MONTHCAL_MonthDiff
(
&
infoPtr
->
calendars
[
0
].
month
,
&
infoPtr
->
maxSel
);
if
(
diff
>
0
)
diff
=
0
;
}
if
(
diff
!=
0
)
{
INT
i
;
for
(
i
=
0
;
i
<
MONTHCAL_GetCalCount
(
infoPtr
);
i
++
)
MONTHCAL_GetMonth
(
&
infoPtr
->
calendars
[
i
].
month
,
diff
);
}
/* update day of week */
MONTHCAL_CalculateDayOfWeek
(
&
infoPtr
->
minSel
,
TRUE
);
...
...
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