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
ea2f6016
Commit
ea2f6016
authored
Oct 21, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Plug a couple of memory leaks.
parent
2cb378d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
advpack.c
dlls/advpack/advpack.c
+5
-4
files.c
dlls/advpack/files.c
+16
-0
No files found.
dlls/advpack/advpack.c
View file @
ea2f6016
...
...
@@ -710,6 +710,7 @@ HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSec
DWORD
dwBufferSize
,
PDWORD
pdwRequiredSize
,
PVOID
pvReserved
)
{
HINF
hInf
;
HRESULT
hret
=
S_OK
;
TRACE
(
"(%s, %s, %s, %s, %p, %d, %p, %p)
\n
"
,
debugstr_w
(
pszInfFilename
),
debugstr_w
(
pszInstallSection
),
...
...
@@ -730,13 +731,13 @@ HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSec
pszBuffer
,
dwBufferSize
,
pdwRequiredSize
))
{
if
(
dwBufferSize
<
*
pdwRequiredSize
)
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
return
SPAPI_E_LINE_NOT_FOUND
;
hret
=
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
else
hret
=
SPAPI_E_LINE_NOT_FOUND
;
}
SetupCloseInfFile
(
hInf
);
return
S_OK
;
return
hret
;
}
/***********************************************************************
...
...
dlls/advpack/files.c
View file @
ea2f6016
...
...
@@ -573,7 +573,10 @@ static LPSTR convert_file_list(LPCSTR FileList, DWORD *dwNumFiles)
/* empty list */
if
(
!
lstrlenA
(
szConvertedList
))
{
HeapFree
(
GetProcessHeap
(),
0
,
szConvertedList
);
return
NULL
;
}
*
dwNumFiles
=
1
;
...
...
@@ -744,6 +747,19 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
extractDest
.
flags
|=
EXTRACT_EXTRACTFILES
;
res
=
pExtract
(
&
extractDest
,
CabName
);
if
(
extractDest
.
filelist
)
{
struct
ExtractFileList
*
curr
=
extractDest
.
filelist
;
struct
ExtractFileList
*
next
;
while
(
curr
)
{
next
=
curr
->
next
;
free_file_node
(
curr
);
curr
=
next
;
}
}
done:
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