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
99f0c0a1
Commit
99f0c0a1
authored
Jan 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix interface leak while adding tree items.
parent
92dbc57a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
brsfolder.c
dlls/shell32/brsfolder.c
+7
-3
No files found.
dlls/shell32/brsfolder.c
View file @
99f0c0a1
...
...
@@ -414,7 +414,7 @@ static void FillTreeView( browse_info *info, IShellFolder * lpsf,
SetCapture
(
hwnd
);
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
IDC_WAIT
)
);
while
(
NOERROR
==
IEnumIDList_Next
(
lpe
,
1
,
&
pidlTemp
,
&
ulFetched
))
while
(
S_OK
==
IEnumIDList_Next
(
lpe
,
1
,
&
pidlTemp
,
&
ulFetched
))
{
ULONG
ulAttrs
=
SFGAO_HASSUBFOLDER
|
SFGAO_FOLDER
;
IEnumIDList
*
pEnumIL
=
NULL
;
...
...
@@ -521,14 +521,18 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv
if
(
!
_ILIsEmpty
(
lptvid
->
lpi
))
{
r
=
IShellFolder_BindToObject
(
lptvid
->
lpsfParent
,
lptvid
->
lpi
,
0
,
&
IID_IShellFolder
,
(
LPVOID
*
)
&
lpsf2
);
&
IID_IShellFolder
,
(
void
*
*
)
&
lpsf2
);
}
else
{
lpsf2
=
lptvid
->
lpsfParent
;
r
=
IShellFolder_AddRef
(
lpsf2
);
IShellFolder_AddRef
(
lpsf2
);
r
=
S_OK
;
}
if
(
SUCCEEDED
(
r
))
{
FillTreeView
(
info
,
lpsf2
,
lptvid
->
lpifq
,
pnmtv
->
itemNew
.
hItem
,
lptvid
->
pEnumIL
);
IShellFolder_Release
(
lpsf2
);
}
/* My Computer is already sorted and trying to do a simple text
* sort will only mess things up */
...
...
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