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
740bc043
Commit
740bc043
authored
Aug 27, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix for GpRegion clone helper.
parent
0940154b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
region.c
dlls/gdiplus/region.c
+10
-4
No files found.
dlls/gdiplus/region.c
View file @
740bc043
...
...
@@ -167,9 +167,12 @@ static inline GpStatus clone_element(const region_element* element,
{
GpStatus
stat
;
*
element2
=
GdipAlloc
(
sizeof
(
region_element
));
if
(
!*
element2
)
return
OutOfMemory
;
/* root node is allocated with GpRegion */
if
(
!*
element2
){
*
element2
=
GdipAlloc
(
sizeof
(
region_element
));
if
(
!*
element2
)
return
OutOfMemory
;
}
(
*
element2
)
->
type
=
element
->
type
;
...
...
@@ -188,6 +191,9 @@ static inline GpStatus clone_element(const region_element* element,
if
(
stat
!=
Ok
)
goto
clone_out
;
break
;
default:
(
*
element2
)
->
elementdata
.
combine
.
left
=
NULL
;
(
*
element2
)
->
elementdata
.
combine
.
right
=
NULL
;
stat
=
clone_element
(
element
->
elementdata
.
combine
.
left
,
&
(
*
element2
)
->
elementdata
.
combine
.
left
);
if
(
stat
!=
Ok
)
goto
clone_out
;
...
...
@@ -344,7 +350,7 @@ GpStatus WINGDIPAPI GdipCombineRegionRectI(GpRegion *region,
GpStatus
WINGDIPAPI
GdipCombineRegionRegion
(
GpRegion
*
region1
,
GpRegion
*
region2
,
CombineMode
mode
)
{
region_element
*
left
,
*
right
;
region_element
*
left
,
*
right
=
NULL
;
GpStatus
stat
;
TRACE
(
"%p %p %d
\n
"
,
region1
,
region2
,
mode
);
...
...
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