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
a71a22c5
Commit
a71a22c5
authored
Feb 14, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Fixed fd leak in case of error.
parent
7ecc283b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
fdi.c
dlls/cabinet/fdi.c
+4
-1
install.c
dlls/msi/tests/install.c
+2
-2
No files found.
dlls/cabinet/fdi.c
View file @
a71a22c5
...
...
@@ -2446,7 +2446,7 @@ BOOL __cdecl FDICopy(
{
FDICABINETINFO
fdici
;
FDINOTIFICATION
fdin
;
int
cabhf
,
filehf
,
idx
;
int
cabhf
,
filehf
=
0
,
idx
;
unsigned
int
i
;
char
fullpath
[
MAX_PATH
];
size_t
pathlen
,
filenamelen
;
...
...
@@ -2826,6 +2826,7 @@ BOOL __cdecl FDICopy(
fdin
.
time
=
file
->
time
;
fdin
.
attribs
=
file
->
attribs
;
/* FIXME: filter _A_EXEC? */
((
*
pfnfdin
)(
fdintCLOSE_FILE_INFO
,
&
fdin
));
filehf
=
0
;
switch
(
err
)
{
case
DECR_OK
:
...
...
@@ -2914,6 +2915,8 @@ BOOL __cdecl FDICopy(
break
;
}
if
(
filehf
)
PFDI_CLOSE
(
hfdi
,
filehf
);
while
(
decomp_state
)
{
fdi_decomp_state
*
prev_fds
;
...
...
dlls/msi/tests/install.c
View file @
a71a22c5
...
...
@@ -1111,10 +1111,10 @@ static void test_uiLevelFlags(void)
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
}
delete_pf
(
"msitest"
,
FALSE
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
delete_cab_files
();
DeleteFile
(
msifile
);
...
...
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