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
d37a119e
Commit
d37a119e
authored
Jan 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fixed a couple of FindFirstFile handle leaks.
parent
a76d5a10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
shlfileop.c
dlls/shell32/shlfileop.c
+5
-2
No files found.
dlls/shell32/shlfileop.c
View file @
d37a119e
...
...
@@ -826,6 +826,7 @@ static BOOL add_file_to_entry(FILE_ENTRY *feFile, LPWSTR szFile, BOOL bFromWildc
{
DWORD
dwLen
=
strlenW
(
szFile
)
+
1
;
LPWSTR
ptr
;
HANDLE
h
;
feFile
->
szFullPath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwLen
*
sizeof
(
WCHAR
));
strcpyW
(
feFile
->
szFullPath
,
szFile
);
...
...
@@ -843,8 +844,10 @@ static BOOL add_file_to_entry(FILE_ENTRY *feFile, LPWSTR szFile, BOOL bFromWildc
}
feFile
->
bFromWildcard
=
bFromWildcard
;
if
(
FindFirstFileW
(
feFile
->
szFullPath
,
&
feFile
->
wfd
)
!=
INVALID_HANDLE_VALUE
)
h
=
FindFirstFileW
(
feFile
->
szFullPath
,
&
feFile
->
wfd
);
if
(
h
!=
INVALID_HANDLE_VALUE
)
{
FindClose
(
h
);
if
(
IsAttribDir
(
feFile
->
wfd
.
dwFileAttributes
))
return
TRUE
;
}
...
...
@@ -890,7 +893,7 @@ static void parse_wildcard_files(FILE_LIST *flList, LPWSTR szFile, LPDWORD pdwLi
flList
->
bAnyDirectories
=
TRUE
;
}
CloseHandl
e
(
hFile
);
FindClos
e
(
hFile
);
}
/* takes the null-separated file list and fills out the FILE_LIST */
...
...
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