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
a2406b8c
Commit
a2406b8c
authored
Jul 10, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Don't use struct member before NULL check (Coverity).
parent
cd3954e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+3
-1
No files found.
dlls/gdiplus/graphicspath.c
View file @
a2406b8c
...
...
@@ -66,7 +66,7 @@ static BOOL lengthen_path(GpPath *path, INT len)
GpStatus
WINGDIPAPI
GdipAddPathLine2
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
INT
i
,
old_count
=
path
->
pathdata
.
Count
;
INT
i
,
old_count
;
if
(
!
path
||
!
points
)
return
InvalidParameter
;
...
...
@@ -74,6 +74,8 @@ GpStatus WINGDIPAPI GdipAddPathLine2(GpPath *path, GDIPCONST GpPointF *points,
if
(
!
lengthen_path
(
path
,
count
))
return
OutOfMemory
;
old_count
=
path
->
pathdata
.
Count
;
for
(
i
=
0
;
i
<
count
;
i
++
){
path
->
pathdata
.
Points
[
old_count
+
i
].
X
=
points
[
i
].
X
;
path
->
pathdata
.
Points
[
old_count
+
i
].
Y
=
points
[
i
].
Y
;
...
...
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