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
6487f339
Commit
6487f339
authored
May 26, 2010
by
Austin English
Committed by
Alexandre Julliard
May 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Check return value of GetUpdateRect in test_validatergn.
parent
39eaaeaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
win.c
dlls/user32/tests/win.c
+3
-0
No files found.
dlls/user32/tests/win.c
View file @
6487f339
...
@@ -3213,10 +3213,12 @@ static void test_validatergn(HWND hwnd)
...
@@ -3213,10 +3213,12 @@ static void test_validatergn(HWND hwnd)
GetWindowRect
(
child
,
&
rc
);
GetWindowRect
(
child
,
&
rc
);
MapWindowPoints
(
NULL
,
hwnd
,
(
POINT
*
)
&
rc
,
2
);
MapWindowPoints
(
NULL
,
hwnd
,
(
POINT
*
)
&
rc
,
2
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ok
(
ret
==
1
,
"Expected GetUpdateRect to return non-zero, got %d
\n
"
,
ret
);
ok
(
rc2
.
right
>
rc2
.
left
&&
rc2
.
bottom
>
rc2
.
top
,
ok
(
rc2
.
right
>
rc2
.
left
&&
rc2
.
bottom
>
rc2
.
top
,
"Update rectangle is empty!
\n
"
);
"Update rectangle is empty!
\n
"
);
ValidateRect
(
hwnd
,
&
rc
);
ValidateRect
(
hwnd
,
&
rc
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ok
(
!
ret
,
"Expected GetUpdateRect to return zero, got %d
\n
"
,
ret
);
ok
(
rc2
.
left
==
0
&&
rc2
.
top
==
0
&&
rc2
.
right
==
0
&&
rc2
.
bottom
==
0
,
ok
(
rc2
.
left
==
0
&&
rc2
.
top
==
0
&&
rc2
.
right
==
0
&&
rc2
.
bottom
==
0
,
"Update rectangle %d,%d-%d,%d is not empty!
\n
"
,
rc2
.
left
,
rc2
.
top
,
"Update rectangle %d,%d-%d,%d is not empty!
\n
"
,
rc2
.
left
,
rc2
.
top
,
rc2
.
right
,
rc2
.
bottom
);
rc2
.
right
,
rc2
.
bottom
);
...
@@ -3228,6 +3230,7 @@ static void test_validatergn(HWND hwnd)
...
@@ -3228,6 +3230,7 @@ static void test_validatergn(HWND hwnd)
rgn
=
CreateRectRgnIndirect
(
&
rc
);
rgn
=
CreateRectRgnIndirect
(
&
rc
);
ValidateRgn
(
hwnd
,
rgn
);
ValidateRgn
(
hwnd
,
rgn
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ret
=
GetUpdateRect
(
child
,
&
rc2
,
0
);
ok
(
!
ret
,
"Expected GetUpdateRect to return zero, got %d
\n
"
,
ret
);
ok
(
rc2
.
left
==
0
&&
rc2
.
top
==
0
&&
rc2
.
right
==
0
&&
rc2
.
bottom
==
0
,
ok
(
rc2
.
left
==
0
&&
rc2
.
top
==
0
&&
rc2
.
right
==
0
&&
rc2
.
bottom
==
0
,
"Update rectangle %d,%d-%d,%d is not empty!
\n
"
,
rc2
.
left
,
rc2
.
top
,
"Update rectangle %d,%d-%d,%d is not empty!
\n
"
,
rc2
.
left
,
rc2
.
top
,
rc2
.
right
,
rc2
.
bottom
);
rc2
.
right
,
rc2
.
bottom
);
...
...
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