Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b5ca0a9c
Commit
b5ca0a9c
authored
Dec 02, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix incorrect initialization of path array.
Found by Valgrind.
parent
c5b34644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
path.c
dlls/gdi32/path.c
+6
-9
No files found.
dlls/gdi32/path.c
View file @
b5ca0a9c
...
...
@@ -1852,7 +1852,7 @@ static BOOL PATH_WidenPath(DC *dc)
{
INT
i
,
j
,
numStrokes
,
penWidth
,
penWidthIn
,
penWidthOut
,
size
,
penStyle
;
BOOL
ret
=
FALSE
;
GdiPath
*
pPath
,
*
pNewPath
,
**
pStrokes
,
*
pUpPath
,
*
pDownPath
;
GdiPath
*
pPath
,
*
pNewPath
,
**
pStrokes
=
NULL
,
*
pUpPath
,
*
pDownPath
;
EXTLOGPEN
*
elp
;
DWORD
obj_type
,
joint
,
endcap
,
penType
;
...
...
@@ -1907,13 +1907,6 @@ static BOOL PATH_WidenPath(DC *dc)
numStrokes
=
0
;
pStrokes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
numStrokes
*
sizeof
(
GdiPath
*
));
pStrokes
[
0
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
GdiPath
));
PATH_InitGdiPath
(
pStrokes
[
0
]);
pStrokes
[
0
]
->
pFlags
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPath
->
numEntriesUsed
*
sizeof
(
INT
));
pStrokes
[
0
]
->
pPoints
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pPath
->
numEntriesUsed
*
sizeof
(
POINT
));
pStrokes
[
0
]
->
numEntriesUsed
=
0
;
for
(
i
=
0
,
j
=
0
;
i
<
pPath
->
numEntriesUsed
;
i
++
,
j
++
)
{
POINT
point
;
if
((
i
==
0
||
(
pPath
->
pFlags
[
i
-
1
]
&
PT_CLOSEFIGURE
))
&&
...
...
@@ -1930,7 +1923,11 @@ static BOOL PATH_WidenPath(DC *dc)
}
numStrokes
++
;
j
=
0
;
pStrokes
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pStrokes
,
numStrokes
*
sizeof
(
GdiPath
*
));
if
(
numStrokes
==
1
)
pStrokes
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
GdiPath
*
));
else
pStrokes
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pStrokes
,
numStrokes
*
sizeof
(
GdiPath
*
));
if
(
!
pStrokes
)
return
FALSE
;
pStrokes
[
numStrokes
-
1
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
GdiPath
));
PATH_InitGdiPath
(
pStrokes
[
numStrokes
-
1
]);
pStrokes
[
numStrokes
-
1
]
->
state
=
PATH_Open
;
...
...
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