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
a62d1787
Commit
a62d1787
authored
Mar 14, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Use MCM_GETRANGE result directly in DTM_GETRANGE.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68701440
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
datetime.c
dlls/comctl32/datetime.c
+1
-3
datetime.c
dlls/comctl32/tests/datetime.c
+7
-0
No files found.
dlls/comctl32/datetime.c
View file @
a62d1787
...
@@ -1555,7 +1555,6 @@ static LRESULT WINAPI
...
@@ -1555,7 +1555,6 @@ static LRESULT WINAPI
DATETIME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
DATETIME_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
DATETIME_INFO
*
infoPtr
=
((
DATETIME_INFO
*
)
GetWindowLongPtrW
(
hwnd
,
0
));
DATETIME_INFO
*
infoPtr
=
((
DATETIME_INFO
*
)
GetWindowLongPtrW
(
hwnd
,
0
));
LRESULT
ret
;
TRACE
(
"%x, %lx, %lx
\n
"
,
uMsg
,
wParam
,
lParam
);
TRACE
(
"%x, %lx, %lx
\n
"
,
uMsg
,
wParam
,
lParam
);
...
@@ -1571,8 +1570,7 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -1571,8 +1570,7 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
DATETIME_SetSystemTime
(
infoPtr
,
wParam
,
(
SYSTEMTIME
*
)
lParam
);
return
DATETIME_SetSystemTime
(
infoPtr
,
wParam
,
(
SYSTEMTIME
*
)
lParam
);
case
DTM_GETRANGE
:
case
DTM_GETRANGE
:
ret
=
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_GETRANGE
,
wParam
,
lParam
);
return
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_GETRANGE
,
wParam
,
lParam
);
return
ret
?
ret
:
1
;
/* bug emulation */
case
DTM_SETRANGE
:
case
DTM_SETRANGE
:
return
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_SETRANGE
,
wParam
,
lParam
);
return
SendMessageW
(
infoPtr
->
hMonthCal
,
MCM_SETRANGE
,
wParam
,
lParam
);
...
...
dlls/comctl32/tests/datetime.c
View file @
a62d1787
...
@@ -404,6 +404,13 @@ static void test_dtm_set_and_get_range(void)
...
@@ -404,6 +404,13 @@ static void test_dtm_set_and_get_range(void)
ok_sequence
(
sequences
,
DATETIME_SEQ_INDEX
,
test_dtm_set_and_get_range_seq
,
"test_dtm_set_and_get_range"
,
FALSE
);
ok_sequence
(
sequences
,
DATETIME_SEQ_INDEX
,
test_dtm_set_and_get_range_seq
,
"test_dtm_set_and_get_range"
,
FALSE
);
/* DTM_SETRANGE with 0 flags */
r
=
SendMessageA
(
hWnd
,
DTM_SETRANGE
,
0
,
(
LPARAM
)
st
);
ok
(
r
,
"got %lu
\n
"
,
r
);
r
=
SendMessageA
(
hWnd
,
DTM_GETRANGE
,
0
,
(
LPARAM
)
getSt
);
ok
(
r
==
0
,
"got %lu
\n
"
,
r
);
ok
(
getSt
[
0
].
wYear
==
0
&&
getSt
[
1
].
wYear
==
0
,
"got %u, %u
\n
"
,
getSt
[
0
].
wYear
,
getSt
[
1
].
wYear
);
DestroyWindow
(
hWnd
);
DestroyWindow
(
hWnd
);
}
}
...
...
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