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
1d3f679e
Commit
1d3f679e
authored
Oct 30, 2012
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Avoid handle leaks (coverity).
parent
64e169d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
builtins.c
programs/cmd/builtins.c
+2
-0
No files found.
programs/cmd/builtins.c
View file @
1d3f679e
...
...
@@ -394,6 +394,7 @@ static BOOL WCMD_AppendEOF(WCHAR *filename)
SetFilePointer
(
h
,
0
,
NULL
,
FILE_END
);
if
(
!
WriteFile
(
h
,
&
eof
,
1
,
NULL
,
NULL
))
{
WINE_ERR
(
"Failed to append EOF to %s (%d)
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
());
CloseHandle
(
h
);
return
FALSE
;
}
CloseHandle
(
h
);
...
...
@@ -430,6 +431,7 @@ static BOOL WCMD_ManualCopy(WCHAR *srcname, WCHAR *dstname, BOOL ascii, BOOL app
append
?
OPEN_EXISTING
:
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
out
==
NULL
)
{
WINE_ERR
(
"Failed to open %s (%d)
\n
"
,
wine_dbgstr_w
(
dstname
),
GetLastError
());
CloseHandle
(
in
);
return
FALSE
;
}
...
...
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