Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cbca4b3f
Commit
cbca4b3f
authored
Jun 20, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use EqualRect() instead of memcmp() to compare RECTs.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c35d07fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
listview.c
dlls/comctl32/tests/listview.c
+1
-1
toolbar.c
dlls/comctl32/tests/toolbar.c
+1
-1
No files found.
dlls/comctl32/tests/listview.c
View file @
cbca4b3f
...
...
@@ -908,7 +908,7 @@ static void test_images(void)
r
=
SendMessageA
(
hwnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
r2
);
expect
(
1
,
r
);
ok
(
!
memcmp
(
&
r1
,
&
r2
,
sizeof
r1
),
"rectangle should be the same
\n
"
);
ok
(
EqualRect
(
&
r1
,
&
r2
),
"rectangle should be the same
\n
"
);
DestroyWindow
(
hwnd
);
}
...
...
dlls/comctl32/tests/toolbar.c
View file @
cbca4b3f
...
...
@@ -1232,7 +1232,7 @@ static DWORD tbsize_alt_numtests = 0;
for (i=0; i<min(buttonCount, res->nButtons); i++) { \
ok(SendMessageA(hToolbar, TB_GETITEMRECT, i, (LPARAM)&rc) == 1, "TB_GETITEMRECT\n"); \
if (broken(tbsize_alt_numtests < sizeof(tbsize_alt_results)/sizeof(tbsize_alt_results[0]) && \
memcmp(&rc, &tbsize_alt_results[tbsize_alt_numtests].rcButton, sizeof(RECT)) == 0
)) { \
EqualRect(&rc, &tbsize_alt_results[tbsize_alt_numtests].rcButton)
)) { \
win_skip("Alternate rect found\n"); \
tbsize_alt_numtests++; \
} else if (!(mask&1)) { \
...
...
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