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
13b2755d
Commit
13b2755d
authored
Feb 05, 2024
by
Esme Povirk
Committed by
Alexandre Julliard
Feb 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix some degenerate cases combining infinite regions.
parent
3c19b29c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
region.c
dlls/gdiplus/region.c
+9
-2
No files found.
dlls/gdiplus/region.c
View file @
13b2755d
...
...
@@ -1108,7 +1108,10 @@ static GpStatus get_region_hrgn(struct region_element *element, GpGraphics *grap
case
CombineModeXor
:
case
CombineModeExclude
:
left
=
CreateRectRgn
(
-
(
1
<<
22
),
-
(
1
<<
22
),
1
<<
22
,
1
<<
22
);
break
;
case
CombineModeUnion
:
case
CombineModeComplement
:
case
CombineModeComplement
:
*
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
return
*
hrgn
?
Ok
:
OutOfMemory
;
case
CombineModeUnion
:
*
hrgn
=
NULL
;
return
Ok
;
}
...
...
@@ -1133,7 +1136,11 @@ static GpStatus get_region_hrgn(struct region_element *element, GpGraphics *grap
case
CombineModeXor
:
case
CombineModeComplement
:
right
=
CreateRectRgn
(
-
(
1
<<
22
),
-
(
1
<<
22
),
1
<<
22
,
1
<<
22
);
break
;
case
CombineModeUnion
:
case
CombineModeExclude
:
case
CombineModeExclude
:
DeleteObject
(
left
);
*
hrgn
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
return
*
hrgn
?
Ok
:
OutOfMemory
;
case
CombineModeUnion
:
DeleteObject
(
left
);
*
hrgn
=
NULL
;
return
Ok
;
...
...
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