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
154d088e
Commit
154d088e
authored
Oct 06, 2011
by
Marko Nikolic
Committed by
Alexandre Julliard
Oct 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Removed sign comparison warning in datetime tests.
parent
30fde946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
datetime.c
dlls/comctl32/tests/datetime.c
+9
-10
No files found.
dlls/comctl32/tests/datetime.c
View file @
154d088e
...
...
@@ -204,22 +204,21 @@ static void test_dtm_set_format(void)
static
void
test_mccolor_types
(
HWND
hWndDateTime
,
int
mccolor_type
,
const
char
*
mccolor_name
)
{
LRESULT
r
;
COLORREF
theColor
,
prevColor
;
COLORREF
theColor
,
prevColor
,
crColor
;
theColor
=
RGB
(
0
,
0
,
0
);
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
r
!=
-
1
,
"%s: Set RGB(0,0,0): Expected COLORREF of previous value, got %ld
\n
"
,
mccolor_name
,
r
);
crColo
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
crColor
!=
~
0u
,
"%s: Set RGB(0,0,0): Expected COLORREF of previous value, got %d
\n
"
,
mccolor_name
,
crColo
r
);
prevColor
=
theColor
;
theColor
=
RGB
(
255
,
255
,
255
);
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
r
==
prevColor
,
"%s: Set RGB(255,255,255): Expected COLORREF of previous value, got %ld
\n
"
,
mccolor_name
,
r
);
crColo
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
crColor
==
prevColor
,
"%s: Set RGB(255,255,255): Expected COLORREF of previous value, got %d
\n
"
,
mccolor_name
,
crColo
r
);
prevColor
=
theColor
;
theColor
=
RGB
(
100
,
180
,
220
);
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
r
==
prevColor
,
"%s: Set RGB(100,180,220): Expected COLORREF of previous value, got %ld
\n
"
,
mccolor_name
,
r
);
r
=
SendMessage
(
hWndDateTime
,
DTM_GETMCCOLOR
,
mccolor_type
,
0
);
ok
(
r
==
theColor
,
"%s: GETMCCOLOR: Expected %d, got %ld
\n
"
,
mccolor_name
,
theColor
,
r
);
crColo
r
=
SendMessage
(
hWndDateTime
,
DTM_SETMCCOLOR
,
mccolor_type
,
theColor
);
ok
(
crColor
==
prevColor
,
"%s: Set RGB(100,180,220): Expected COLORREF of previous value, got %d
\n
"
,
mccolor_name
,
crColo
r
);
crColo
r
=
SendMessage
(
hWndDateTime
,
DTM_GETMCCOLOR
,
mccolor_type
,
0
);
ok
(
crColor
==
theColor
,
"%s: GETMCCOLOR: Expected %d, got %d
\n
"
,
mccolor_name
,
theColor
,
crColo
r
);
}
static
void
test_dtm_set_and_get_mccolor
(
void
)
...
...
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