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
a33d34b8
Commit
a33d34b8
authored
May 24, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid needless gotos.
parent
4060716d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
region.c
dlls/gdiplus/region.c
+9
-10
No files found.
dlls/gdiplus/region.c
View file @
a33d34b8
...
...
@@ -151,15 +151,15 @@ static inline GpStatus clone_element(const region_element* element,
{
case
RegionDataRect
:
(
*
element2
)
->
elementdata
.
rect
=
element
->
elementdata
.
rect
;
brea
k
;
return
O
k
;
case
RegionDataEmptyRect
:
case
RegionDataInfiniteRect
:
brea
k
;
return
O
k
;
case
RegionDataPath
:
(
*
element2
)
->
elementdata
.
pathdata
.
pathheader
=
element
->
elementdata
.
pathdata
.
pathheader
;
stat
=
GdipClonePath
(
element
->
elementdata
.
pathdata
.
path
,
&
(
*
element2
)
->
elementdata
.
pathdata
.
path
);
if
(
stat
!=
Ok
)
goto
clone_out
;
if
(
stat
==
Ok
)
return
Ok
;
break
;
default:
(
*
element2
)
->
elementdata
.
combine
.
left
=
NULL
;
...
...
@@ -167,16 +167,15 @@ static inline GpStatus clone_element(const region_element* element,
stat
=
clone_element
(
element
->
elementdata
.
combine
.
left
,
&
(
*
element2
)
->
elementdata
.
combine
.
left
);
if
(
stat
!=
Ok
)
goto
clone_out
;
stat
=
clone_element
(
element
->
elementdata
.
combine
.
right
,
&
(
*
element2
)
->
elementdata
.
combine
.
right
);
if
(
stat
!=
Ok
)
goto
clone_out
;
if
(
stat
==
Ok
)
{
stat
=
clone_element
(
element
->
elementdata
.
combine
.
right
,
&
(
*
element2
)
->
elementdata
.
combine
.
right
);
if
(
stat
==
Ok
)
return
Ok
;
}
break
;
}
return
Ok
;
clone_out:
delete_element
(
*
element2
);
*
element2
=
NULL
;
return
stat
;
...
...
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