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
321dfcc7
Commit
321dfcc7
authored
Apr 21, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Do not access freed memory in a test.
parent
9c9209ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
graphics.c
dlls/gdiplus/tests/graphics.c
+15
-5
No files found.
dlls/gdiplus/tests/graphics.c
View file @
321dfcc7
...
...
@@ -72,20 +72,30 @@ static void check_no_duplicates(node * log)
{
INT
dups
=
0
;
node
*
temp
=
NULL
;
node
*
temp2
=
NULL
;
node
*
orig
=
log
;
if
(
!
log
)
goto
end
;
do
{
HeapFree
(
GetProcessHeap
(),
0
,
temp
);
temp
=
log
;
while
((
temp
=
temp
->
next
))
if
(
log
->
data
==
temp
->
data
)
while
((
temp
=
temp
->
next
))
{
if
(
log
->
data
==
temp
->
data
)
{
dups
++
;
break
;
}
if
(
dups
>
0
)
break
;
}
}
while
((
log
=
log
->
next
));
HeapFree
(
GetProcessHeap
(),
0
,
temp
);
temp
=
orig
;
do
{
temp2
=
temp
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
temp
);
temp
=
temp2
;
}
while
(
temp
);
end:
expect
(
0
,
dups
);
...
...
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