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
150b8dd0
Commit
150b8dd0
authored
Sep 15, 2023
by
Huw Davies
Committed by
Alexandre Julliard
Sep 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Copy the compound array in GdipClonePen().
parent
f0525a5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pen.c
dlls/gdiplus/pen.c
+10
-0
No files found.
dlls/gdiplus/pen.c
View file @
150b8dd0
...
...
@@ -103,6 +103,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
(
*
clonepen
)
->
customend
=
NULL
;
(
*
clonepen
)
->
brush
=
NULL
;
(
*
clonepen
)
->
dashes
=
NULL
;
(
*
clonepen
)
->
compound_array
=
NULL
;
stat
=
GdipCloneBrush
(
pen
->
brush
,
&
(
*
clonepen
)
->
brush
);
...
...
@@ -121,6 +122,15 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
stat
=
OutOfMemory
;
}
if
(
stat
==
Ok
&&
pen
->
compound_array
)
{
(
*
clonepen
)
->
compound_array
=
heap_alloc_zero
(
pen
->
compound_array_size
*
sizeof
(
REAL
));
if
((
*
clonepen
)
->
compound_array
)
memcpy
((
*
clonepen
)
->
compound_array
,
pen
->
compound_array
,
pen
->
compound_array_size
*
sizeof
(
REAL
));
else
stat
=
OutOfMemory
;
}
if
(
stat
!=
Ok
)
{
GdipDeletePen
(
*
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