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
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
...
@@ -410,33 +410,27 @@ static HRESULT WINAPI RecycleBin_EnumObjects(IShellFolder2 *iface, HWND hwnd, SH
RecycleBin
*
This
=
impl_from_IShellFolder2
(
iface
);
RecycleBin
*
This
=
impl_from_IShellFolder2
(
iface
);
IEnumIDList
*
list
;
IEnumIDList
*
list
;
LPITEMIDLIST
*
pidls
;
LPITEMIDLIST
*
pidls
;
HRESULT
ret
;
HRESULT
ret
=
E_OUTOFMEMORY
;
int
pidls_count
;
int
pidls_count
;
int
i
=
0
;
int
i
=
0
;
TRACE
(
"(%p, %p, %x, %p)
\n
"
,
This
,
hwnd
,
grfFlags
,
ppenumIDList
);
TRACE
(
"(%p, %p, %x, %p)
\n
"
,
This
,
hwnd
,
grfFlags
,
ppenumIDList
);
*
ppenumIDList
=
NULL
;
list
=
IEnumIDList_Constructor
();
if
(
!
list
)
return
E_OUTOFMEMORY
;
if
(
grfFlags
&
SHCONTF_NONFOLDERS
)
if
(
grfFlags
&
SHCONTF_NONFOLDERS
)
{
{
*
ppenumIDList
=
NULL
;
if
(
FAILED
(
ret
=
TRASH_EnumItems
(
&
pidls
,
&
pidls_count
)))
if
(
FAILED
(
ret
=
TRASH_EnumItems
(
&
pidls
,
&
pidls_count
)))
return
ret
;
list
=
IEnumIDList_Constructor
();
if
(
list
==
NULL
)
goto
failed
;
goto
failed
;
for
(
i
=
0
;
i
<
pidls_count
;
i
++
)
for
(
i
=
0
;
i
<
pidls_count
;
i
++
)
if
(
!
AddToEnumList
(
list
,
pidls
[
i
]))
if
(
!
AddToEnumList
(
list
,
pidls
[
i
]))
goto
failed
;
goto
failed
;
*
ppenumIDList
=
list
;
}
}
else
{
*
ppenumIDList
=
list
;
*
ppenumIDList
=
IEnumIDList_Constructor
();
if
(
*
ppenumIDList
==
NULL
)
return
E_OUTOFMEMORY
;
}
return
S_OK
;
return
S_OK
;
failed:
failed:
...
@@ -445,7 +439,7 @@ failed:
...
@@ -445,7 +439,7 @@ failed:
for
(;
i
<
pidls_count
;
i
++
)
for
(;
i
<
pidls_count
;
i
++
)
ILFree
(
pidls
[
i
]);
ILFree
(
pidls
[
i
]);
SHFree
(
pidls
);
SHFree
(
pidls
);
return
E_OUTOFMEMORY
;
return
ret
;
}
}
static
HRESULT
WINAPI
RecycleBin_BindToObject
(
IShellFolder2
*
This
,
LPCITEMIDLIST
pidl
,
LPBC
pbc
,
REFIID
riid
,
void
**
ppv
)
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