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
14dab8ab
Commit
14dab8ab
authored
Apr 10, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Always close find handle (Coverity).
parent
0efa2331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
path.c
dlls/shlwapi/path.c
+5
-7
No files found.
dlls/shlwapi/path.c
View file @
14dab8ab
...
...
@@ -3885,16 +3885,14 @@ BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR lpszPath)
strcpyW
(
szSearch
+
dwLen
,
szAllFiles
);
hfind
=
FindFirstFileW
(
szSearch
,
&
find_data
);
if
(
hfind
!=
INVALID_HANDLE_VALUE
&&
find_data
.
cFileName
[
0
]
==
'.'
&&
find_data
.
cFileName
[
1
]
==
'.'
)
if
(
hfind
!=
INVALID_HANDLE_VALUE
)
{
/* The only directory entry should be the parent */
if
(
!
FindNextFileW
(
hfind
,
&
find_data
))
retVal
=
TRUE
;
if
(
find_data
.
cFileName
[
0
]
==
'.'
&&
find_data
.
cFileName
[
1
]
==
'.'
)
/* The only directory entry should be the parent */
retVal
=
!
FindNextFileW
(
hfind
,
&
find_data
)
;
FindClose
(
hfind
);
}
return
retVal
;
}
...
...
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