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
c8f1e966
Commit
c8f1e966
authored
Dec 10, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/filedlg: Fix a find file handle leak.
parent
c0456e2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
filedlg.c
dlls/comdlg32/filedlg.c
+2
-3
No files found.
dlls/comdlg32/filedlg.c
View file @
c8f1e966
...
...
@@ -1527,12 +1527,11 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
if
(
win98plus
&&
handledPath
==
FALSE
&&
fodInfos
->
filter
&&
*
fodInfos
->
filter
)
{
BOOL
searchMore
=
TRUE
;
LPCWSTR
lpstrPos
=
fodInfos
->
filter
;
WIN32_FIND_DATAW
FindFileData
;
HANDLE
hFind
;
while
(
searchMore
)
while
(
1
)
{
/* filter is a list... title\0ext\0......\0\0 */
...
...
@@ -1550,7 +1549,6 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
lpstrPos
+=
lstrlenW
(
lpstrPos
)
+
1
;
}
else
{
searchMore
=
FALSE
;
MemFree
(
fodInfos
->
initdir
);
fodInfos
->
initdir
=
MemAlloc
(
MAX_PATH
*
sizeof
(
WCHAR
));
...
...
@@ -1559,6 +1557,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
handledPath
=
TRUE
;
TRACE
(
"No initial dir specified, but files of type %s found in current, so using it
\n
"
,
debugstr_w
(
lpstrPos
));
FindClose
(
hFind
);
break
;
}
}
...
...
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