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
27b284d4
Commit
27b284d4
authored
Oct 10, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Simplify RecycleBin_EnumObjects() a little.
parent
d81f55fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
recyclebin.c
dlls/shell32/recyclebin.c
+9
-15
No files found.
dlls/shell32/recyclebin.c
View file @
27b284d4
...
...
@@ -410,33 +410,27 @@ static HRESULT WINAPI RecycleBin_EnumObjects(IShellFolder2 *iface, HWND hwnd, SH
RecycleBin
*
This
=
impl_from_IShellFolder2
(
iface
);
IEnumIDList
*
list
;
LPITEMIDLIST
*
pidls
;
HRESULT
ret
;
HRESULT
ret
=
E_OUTOFMEMORY
;
int
pidls_count
;
int
i
=
0
;
TRACE
(
"(%p, %p, %x, %p)
\n
"
,
This
,
hwnd
,
grfFlags
,
ppenumIDList
);
*
ppenumIDList
=
NULL
;
list
=
IEnumIDList_Constructor
();
if
(
!
list
)
return
E_OUTOFMEMORY
;
if
(
grfFlags
&
SHCONTF_NONFOLDERS
)
{
*
ppenumIDList
=
NULL
;
if
(
FAILED
(
ret
=
TRASH_EnumItems
(
&
pidls
,
&
pidls_count
)))
return
ret
;
list
=
IEnumIDList_Constructor
();
if
(
list
==
NULL
)
goto
failed
;
for
(
i
=
0
;
i
<
pidls_count
;
i
++
)
if
(
!
AddToEnumList
(
list
,
pidls
[
i
]))
goto
failed
;
*
ppenumIDList
=
list
;
}
else
{
*
ppenumIDList
=
IEnumIDList_Constructor
();
if
(
*
ppenumIDList
==
NULL
)
return
E_OUTOFMEMORY
;
}
*
ppenumIDList
=
list
;
return
S_OK
;
failed:
...
...
@@ -445,7 +439,7 @@ failed:
for
(;
i
<
pidls_count
;
i
++
)
ILFree
(
pidls
[
i
]);
SHFree
(
pidls
);
return
E_OUTOFMEMORY
;
return
ret
;
}
static
HRESULT
WINAPI
RecycleBin_BindToObject
(
IShellFolder2
*
This
,
LPCITEMIDLIST
pidl
,
LPBC
pbc
,
REFIID
riid
,
void
**
ppv
)
...
...
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