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
8ed31e2c
Commit
8ed31e2c
authored
Jul 25, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Do not access memory after HeapFree in FreeAppInfo.
parent
352d8570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
appwiz.c
dlls/appwiz.cpl/appwiz.c
+10
-20
No files found.
dlls/appwiz.cpl/appwiz.c
View file @
8ed31e2c
...
...
@@ -110,27 +110,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
*/
static
void
FreeAppInfo
(
APPINFO
*
info
)
{
APPINFO
*
iter
=
info
;
while
(
iter
)
while
(
info
)
{
if
(
iter
->
title
)
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
title
);
if
(
iter
->
path
)
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
path
);
if
(
iter
->
icon
)
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
icon
);
if
(
iter
->
publisher
)
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
publisher
);
if
(
iter
->
version
)
HeapFree
(
GetProcessHeap
(),
0
,
iter
->
version
);
iter
=
iter
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
iter
);
APPINFO
*
next_info
=
info
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
info
->
title
);
HeapFree
(
GetProcessHeap
(),
0
,
info
->
path
);
HeapFree
(
GetProcessHeap
(),
0
,
info
->
icon
);
HeapFree
(
GetProcessHeap
(),
0
,
info
->
publisher
);
HeapFree
(
GetProcessHeap
(),
0
,
info
->
version
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
info
=
next_info
;
}
}
...
...
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