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
8b87bdd7
Commit
8b87bdd7
authored
Jul 08, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Jul 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially implemented UnixFolder's ISFHelper::CopyItems method.
parent
8c518808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
2 deletions
+39
-2
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+39
-2
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
8b87bdd7
...
...
@@ -1455,8 +1455,45 @@ static HRESULT WINAPI UnixFolder_ISFHelper_DeleteItems(ISFHelper* iface, UINT ci
static
HRESULT
WINAPI
UnixFolder_ISFHelper_CopyItems
(
ISFHelper
*
iface
,
IShellFolder
*
psfFrom
,
UINT
cidl
,
LPCITEMIDLIST
*
apidl
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
UnixFolder
*
This
=
ADJUST_THIS
(
UnixFolder
,
ISFHelper
,
iface
);
DWORD
dwAttributes
;
UINT
i
;
HRESULT
hr
;
char
szAbsoluteDst
[
FILENAME_MAX
],
*
pszRelativeDst
;
TRACE
(
"(iface=%p, psfFrom=%p, cidl=%d, apidl=%p): semi-stub
\n
"
,
iface
,
psfFrom
,
cidl
,
apidl
);
if
(
!
psfFrom
||
!
cidl
||
!
apidl
)
return
E_INVALIDARG
;
/* All source items have to be filesystem items. */
dwAttributes
=
SFGAO_FILESYSTEM
;
hr
=
IShellFolder_GetAttributesOf
(
psfFrom
,
cidl
,
apidl
,
&
dwAttributes
);
if
(
FAILED
(
hr
)
||
!
(
dwAttributes
&
SFGAO_FILESYSTEM
))
return
E_INVALIDARG
;
lstrcpyA
(
szAbsoluteDst
,
This
->
m_pszPath
);
pszRelativeDst
=
szAbsoluteDst
+
strlen
(
szAbsoluteDst
);
for
(
i
=
0
;
i
<
cidl
;
i
++
)
{
WCHAR
wszSrc
[
MAX_PATH
];
char
szSrc
[
FILENAME_MAX
];
STRRET
strret
;
/* Build the unix path of the current source item. */
if
(
FAILED
(
IShellFolder_GetDisplayNameOf
(
psfFrom
,
apidl
[
i
],
SHGDN_FORPARSING
,
&
strret
)))
return
E_FAIL
;
if
(
FAILED
(
StrRetToBufW
(
&
strret
,
apidl
[
i
],
wszSrc
,
MAX_PATH
)))
return
E_FAIL
;
if
(
!
UNIXFS_get_unix_path
(
wszSrc
,
szSrc
))
return
E_FAIL
;
/* Build the unix path of the current destination item */
lstrcpyA
(
pszRelativeDst
,
_ILGetTextPointer
(
apidl
[
i
]));
FIXME
(
"Would copy %s to %s. Not yet implemented.
\n
"
,
szSrc
,
szAbsoluteDst
);
}
return
S_OK
;
}
/* VTable for UnixFolder's ISFHelper interface
...
...
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