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
52dc1bcd
Commit
52dc1bcd
authored
Jan 18, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix interface leak (Valgrind).
parent
cc1dc2e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+6
-5
No files found.
dlls/shell32/shfldr_fs.c
View file @
52dc1bcd
...
...
@@ -314,8 +314,7 @@ LPITEMIDLIST SHELL32_CreatePidlFromBindCtx(IBindCtx *pbc, LPCWSTR path)
'B'
,
'i'
,
'n'
,
'd'
,
' '
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
IFileSystemBindData
*
fsbd
=
NULL
;
LPITEMIDLIST
pidl
=
NULL
;
IUnknown
*
param
=
NULL
;
WIN32_FIND_DATAW
wfd
;
IUnknown
*
unk
=
NULL
;
HRESULT
r
;
TRACE
(
"%p %s
\n
"
,
pbc
,
debugstr_w
(
path
));
...
...
@@ -324,14 +323,15 @@ LPITEMIDLIST SHELL32_CreatePidlFromBindCtx(IBindCtx *pbc, LPCWSTR path)
return
NULL
;
/* see if the caller bound File System Bind Data */
r
=
IBindCtx_GetObjectParam
(
pbc
,
szfsbc
,
&
param
);
r
=
IBindCtx_GetObjectParam
(
pbc
,
szfsbc
,
&
unk
);
if
(
FAILED
(
r
))
return
NULL
;
r
=
IUnknown_QueryInterface
(
param
,
&
IID_IFileSystemBindData
,
(
LPVOID
*
)
&
fsbd
);
r
=
IUnknown_QueryInterface
(
unk
,
&
IID_IFileSystemBindData
,
(
void
**
)
&
fsbd
);
if
(
SUCCEEDED
(
r
))
{
WIN32_FIND_DATAW
wfd
;
r
=
IFileSystemBindData_GetFindData
(
fsbd
,
&
wfd
);
if
(
SUCCEEDED
(
r
))
{
...
...
@@ -340,6 +340,7 @@ LPITEMIDLIST SHELL32_CreatePidlFromBindCtx(IBindCtx *pbc, LPCWSTR path)
}
IFileSystemBindData_Release
(
fsbd
);
}
IUnknown_Release
(
unk
);
return
pidl
;
}
...
...
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