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
dc047ecd
Commit
dc047ecd
authored
Aug 14, 2013
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add error checking to GdipClonePen.
parent
814f9cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
pen.c
dlls/gdiplus/pen.c
+20
-3
No files found.
dlls/gdiplus/pen.c
View file @
dc047ecd
...
...
@@ -87,6 +87,8 @@ static GpPenType bt_to_pt(GpBrushType bt)
GpStatus
WINGDIPAPI
GdipClonePen
(
GpPen
*
pen
,
GpPen
**
clonepen
)
{
GpStatus
stat
;
TRACE
(
"(%p, %p)
\n
"
,
pen
,
clonepen
);
if
(
!
pen
||
!
clonepen
)
...
...
@@ -97,9 +99,24 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
**
clonepen
=
*
pen
;
GdipCloneCustomLineCap
(
pen
->
customstart
,
&
(
*
clonepen
)
->
customstart
);
GdipCloneCustomLineCap
(
pen
->
customend
,
&
(
*
clonepen
)
->
customend
);
GdipCloneBrush
(
pen
->
brush
,
&
(
*
clonepen
)
->
brush
);
(
*
clonepen
)
->
customstart
=
NULL
;
(
*
clonepen
)
->
customend
=
NULL
;
(
*
clonepen
)
->
brush
=
NULL
;
stat
=
GdipCloneBrush
(
pen
->
brush
,
&
(
*
clonepen
)
->
brush
);
if
(
stat
==
Ok
&&
pen
->
customstart
)
stat
=
GdipCloneCustomLineCap
(
pen
->
customstart
,
&
(
*
clonepen
)
->
customstart
);
if
(
stat
==
Ok
&&
pen
->
customend
)
stat
=
GdipCloneCustomLineCap
(
pen
->
customend
,
&
(
*
clonepen
)
->
customend
);
if
(
stat
!=
Ok
)
{
GdipDeletePen
(
*
clonepen
);
*
clonepen
=
NULL
;
return
stat
;
}
TRACE
(
"<-- %p
\n
"
,
*
clonepen
);
...
...
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