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
8aba9366
Commit
8aba9366
authored
Jan 30, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Pass trash path to TRASH_EnumItems.
parent
d46862b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
recyclebin.c
dlls/shell32/recyclebin.c
+3
-5
trash.c
dlls/shell32/trash.c
+5
-2
xdg.h
dlls/shell32/xdg.h
+1
-1
No files found.
dlls/shell32/recyclebin.c
View file @
8aba9366
...
...
@@ -423,7 +423,7 @@ static HRESULT WINAPI RecycleBin_EnumObjects(IShellFolder2 *iface, HWND hwnd, SH
if
(
grfFlags
&
SHCONTF_NONFOLDERS
)
{
if
(
FAILED
(
ret
=
TRASH_EnumItems
(
&
pidls
,
&
pidls_count
)))
if
(
FAILED
(
ret
=
TRASH_EnumItems
(
NULL
,
&
pidls
,
&
pidls_count
)))
goto
failed
;
for
(
i
=
0
;
i
<
pidls_count
;
i
++
)
if
(
!
AddToEnumList
(
list
,
pidls
[
i
]))
...
...
@@ -863,9 +863,8 @@ HRESULT WINAPI SHQueryRecycleBinW(LPCWSTR pszRootPath, LPSHQUERYRBINFO pSHQueryR
HRESULT
hr
;
TRACE
(
"(%s, %p)
\n
"
,
debugstr_w
(
pszRootPath
),
pSHQueryRBInfo
);
FIXME
(
"Ignoring pszRootPath=%s
\n
"
,
debugstr_w
(
pszRootPath
));
hr
=
TRASH_EnumItems
(
&
apidl
,
&
cidl
);
hr
=
TRASH_EnumItems
(
pszRootPath
,
&
apidl
,
&
cidl
);
if
(
FAILED
(
hr
))
return
hr
;
pSHQueryRBInfo
->
i64NumItems
=
cidl
;
...
...
@@ -900,9 +899,8 @@ HRESULT WINAPI SHEmptyRecycleBinW(HWND hwnd, LPCWSTR pszRootPath, DWORD dwFlags)
HRESULT
ret
;
TRACE
(
"(%p, %s, 0x%08x)
\n
"
,
hwnd
,
debugstr_w
(
pszRootPath
)
,
dwFlags
);
FIXME
(
"Ignoring pszRootPath=%s
\n
"
,
debugstr_w
(
pszRootPath
));
ret
=
TRASH_EnumItems
(
&
apidl
,
&
cidl
);
ret
=
TRASH_EnumItems
(
pszRootPath
,
&
apidl
,
&
cidl
);
if
(
FAILED
(
ret
))
return
ret
;
...
...
dlls/shell32/trash.c
View file @
8aba9366
...
...
@@ -100,7 +100,7 @@ BOOL TRASH_TrashFile(LPCWSTR wszPath)
return
(
status
==
noErr
);
}
HRESULT
TRASH_EnumItems
(
LPITEMIDLIST
**
pidls
,
int
*
count
)
HRESULT
TRASH_EnumItems
(
const
WCHAR
*
path
,
LPITEMIDLIST
**
pidls
,
int
*
count
)
{
FIXME
(
"stub!
\n
"
);
return
E_NOTIMPL
;
...
...
@@ -577,12 +577,15 @@ failed:
return
NULL
;
}
HRESULT
TRASH_EnumItems
(
LPITEMIDLIST
**
pidls
,
int
*
count
)
HRESULT
TRASH_EnumItems
(
const
WCHAR
*
path
,
LPITEMIDLIST
**
pidls
,
int
*
count
)
{
int
ti_count
;
int
pos
=
0
,
i
;
HRESULT
err
=
E_OUTOFMEMORY
;
HDPA
tinfs
;
if
(
path
)
FIXME
(
"Ignoring path = %s
\n
"
,
debugstr_w
(
path
));
if
(
!
TRASH_EnsureInitialized
())
return
E_FAIL
;
tinfs
=
enum_bucket_trashinfos
(
home_trash
,
&
ti_count
);
...
...
dlls/shell32/xdg.h
View file @
8aba9366
...
...
@@ -40,7 +40,7 @@ void XDG_FreeParsedFile(XDG_PARSED_FILE *file) DECLSPEC_HIDDEN;
BOOL
TRASH_CanTrashFile
(
LPCWSTR
wszPath
)
DECLSPEC_HIDDEN
;
BOOL
TRASH_TrashFile
(
LPCWSTR
wszPath
)
DECLSPEC_HIDDEN
;
HRESULT
TRASH_UnpackItemID
(
LPCSHITEMID
id
,
WIN32_FIND_DATAW
*
data
)
DECLSPEC_HIDDEN
;
HRESULT
TRASH_EnumItems
(
LPITEMIDLIST
**
pidls
,
int
*
count
)
DECLSPEC_HIDDEN
;
HRESULT
TRASH_EnumItems
(
const
WCHAR
*
path
,
LPITEMIDLIST
**
pidls
,
int
*
count
)
DECLSPEC_HIDDEN
;
HRESULT
TRASH_RestoreItem
(
LPCITEMIDLIST
pidl
)
DECLSPEC_HIDDEN
;
HRESULT
TRASH_EraseItem
(
LPCITEMIDLIST
pidl
)
DECLSPEC_HIDDEN
;
...
...
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