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
75139a3e
Commit
75139a3e
authored
Aug 15, 2005
by
Ge van Geldorp
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix resource leak on error paths.
parent
4ebd2fc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
pidl.c
dlls/shell32/pidl.c
+5
-2
No files found.
dlls/shell32/pidl.c
View file @
75139a3e
...
...
@@ -1258,13 +1258,16 @@ BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
dwAttributes
=
SFGAO_FILESYSTEM
;
hr
=
IShellFolder_GetAttributesOf
(
psfFolder
,
1
,
&
pidlLast
,
&
dwAttributes
);
if
(
FAILED
(
hr
)
||
!
(
dwAttributes
&
SFGAO_FILESYSTEM
))
return
FALSE
;
if
(
FAILED
(
hr
)
||
!
(
dwAttributes
&
SFGAO_FILESYSTEM
))
{
IShellFolder_Release
(
psfFolder
);
return
FALSE
;
}
hr
=
IShellFolder_GetDisplayNameOf
(
psfFolder
,
pidlLast
,
SHGDN_FORPARSING
,
&
strret
);
IShellFolder_Release
(
psfFolder
);
if
(
FAILED
(
hr
))
return
FALSE
;
hr
=
StrRetToBufW
(
&
strret
,
pidlLast
,
pszPath
,
MAX_PATH
);
IShellFolder_Release
(
psfFolder
);
TRACE_
(
shell
)(
"-- %s, 0x%08lx
\n
"
,
debugstr_w
(
pszPath
),
hr
);
return
SUCCEEDED
(
hr
);
...
...
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