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
ced5081e
Commit
ced5081e
authored
Jan 06, 2010
by
James Hawkins
Committed by
Alexandre Julliard
Jan 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Free the file list on any error.
parent
621a772d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
files.c
dlls/advpack/files.c
+13
-13
No files found.
dlls/advpack/files.c
View file @
ced5081e
...
...
@@ -648,6 +648,18 @@ static DWORD fill_file_list(SESSION *session, LPCSTR szCabName, LPCSTR szFileLis
return
dwNumFound
;
}
static
void
free_file_list
(
SESSION
*
session
)
{
struct
FILELIST
*
next
,
*
curr
=
session
->
FileList
;
while
(
curr
)
{
next
=
curr
->
next
;
free_file_node
(
curr
);
curr
=
next
;
}
}
/***********************************************************************
* ExtractFilesA (ADVPACK.@)
*
...
...
@@ -728,20 +740,8 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
session
.
Operation
|=
EXTRACT_EXTRACTFILES
;
res
=
pExtract
(
&
session
,
CabName
);
if
(
session
.
FileList
)
{
struct
FILELIST
*
curr
=
session
.
FileList
;
struct
FILELIST
*
next
;
while
(
curr
)
{
next
=
curr
->
next
;
free_file_node
(
curr
);
curr
=
next
;
}
}
done:
free_file_list
(
&
session
);
FreeLibrary
(
hCabinet
);
HeapFree
(
GetProcessHeap
(),
0
,
szConvertedList
);
...
...
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