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
923a9e47
Commit
923a9e47
authored
Oct 28, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memory leak in the cabinet extracting code.
parent
2d6d002b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
files.c
dlls/msi/files.c
+5
-2
No files found.
dlls/msi/files.c
View file @
923a9e47
...
...
@@ -181,6 +181,7 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
CabData
*
data
=
(
CabData
*
)
pfdin
->
pv
;
ULONG
len
=
strlen
(
data
->
cab_path
)
+
strlen
(
pfdin
->
psz1
);
char
*
file
;
INT_PTR
handle
;
LPWSTR
trackname
;
LPWSTR
trackpath
;
...
...
@@ -208,7 +209,7 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
return
0
;
}
file
=
cabinet
_alloc
((
len
+
1
)
*
sizeof
(
char
));
file
=
msi
_alloc
((
len
+
1
)
*
sizeof
(
char
));
strcpy
(
file
,
data
->
cab_path
);
strcat
(
file
,
pfdin
->
psz1
);
...
...
@@ -242,7 +243,9 @@ static INT_PTR cabinet_notify(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin)
ui_progress
(
data
->
package
,
2
,
f
->
FileSize
,
0
,
0
);
return
cabinet_open
(
file
,
_O_WRONLY
|
_O_CREAT
,
0
);
handle
=
cabinet_open
(
file
,
_O_WRONLY
|
_O_CREAT
,
0
);
msi_free
(
file
);
return
handle
;
}
case
fdintCLOSE_FILE_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