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
1f15169f
Commit
1f15169f
authored
Mar 20, 2014
by
Javier Cantero
Committed by
Alexandre Julliard
Mar 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix side effect in SubtractRect().
parent
7a7925c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
uitools.c
dlls/user32/uitools.c
+6
-2
No files found.
dlls/user32/uitools.c
View file @
1f15169f
...
...
@@ -1421,14 +1421,14 @@ BOOL WINAPI SubtractRect( LPRECT dest, const RECT *src1, const RECT *src2 )
SetRectEmpty
(
dest
);
return
FALSE
;
}
*
dest
=
*
src1
;
if
(
IntersectRect
(
&
tmp
,
src1
,
src2
))
{
if
(
EqualRect
(
&
tmp
,
dest
))
if
(
EqualRect
(
&
tmp
,
src1
))
{
SetRectEmpty
(
dest
);
return
FALSE
;
}
*
dest
=
*
src1
;
if
((
tmp
.
top
==
dest
->
top
)
&&
(
tmp
.
bottom
==
dest
->
bottom
))
{
if
(
tmp
.
left
==
dest
->
left
)
dest
->
left
=
tmp
.
right
;
...
...
@@ -1440,6 +1440,10 @@ BOOL WINAPI SubtractRect( LPRECT dest, const RECT *src1, const RECT *src2 )
else
if
(
tmp
.
bottom
==
dest
->
bottom
)
dest
->
bottom
=
tmp
.
top
;
}
}
else
{
*
dest
=
*
src1
;
}
return
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