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
79326157
Commit
79326157
authored
Aug 30, 2007
by
Lionel Debroux
Committed by
Alexandre Julliard
Aug 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix memory leak in CopyFileW.
parent
43860b7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
path.c
dlls/kernel32/path.c
+3
-0
No files found.
dlls/kernel32/path.c
View file @
79326157
...
...
@@ -879,12 +879,14 @@ BOOL WINAPI CopyFileW( LPCWSTR source, LPCWSTR dest, BOOL fail_if_exists )
NULL
,
OPEN_EXISTING
,
0
,
0
))
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"Unable to open source %s
\n
"
,
debugstr_w
(
source
));
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
FALSE
;
}
if
(
!
GetFileInformationByHandle
(
h1
,
&
info
))
{
WARN
(
"GetFileInformationByHandle returned error for %s
\n
"
,
debugstr_w
(
source
));
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
CloseHandle
(
h1
);
return
FALSE
;
}
...
...
@@ -894,6 +896,7 @@ BOOL WINAPI CopyFileW( LPCWSTR source, LPCWSTR dest, BOOL fail_if_exists )
info
.
dwFileAttributes
,
h1
))
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"Unable to open dest %s
\n
"
,
debugstr_w
(
dest
));
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
CloseHandle
(
h1
);
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