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
20feb477
Commit
20feb477
authored
Nov 05, 2010
by
Martin Wilck
Committed by
Alexandre Julliard
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy: Assume directory if destination ends with a backslash.
parent
5fb37aa4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
xcopy.c
programs/xcopy/xcopy.c
+4
-2
No files found.
programs/xcopy/xcopy.c
View file @
20feb477
...
@@ -519,8 +519,10 @@ static int XCOPY_ProcessDestParm(WCHAR *supplieddestination, WCHAR *stem, WCHAR
...
@@ -519,8 +519,10 @@ static int XCOPY_ProcessDestParm(WCHAR *supplieddestination, WCHAR *stem, WCHAR
if
(
attribs
==
INVALID_FILE_ATTRIBUTES
)
{
if
(
attribs
==
INVALID_FILE_ATTRIBUTES
)
{
/* If /I supplied and wildcard copy, assume directory */
/* If /I supplied and wildcard copy, assume directory */
if
(
flags
&
OPT_ASSUMEDIR
&&
/* Also if destination ends with backslash */
(
wcschr
(
srcspec
,
'?'
)
||
wcschr
(
srcspec
,
'*'
)))
{
if
((
flags
&
OPT_ASSUMEDIR
&&
(
wcschr
(
srcspec
,
'?'
)
||
wcschr
(
srcspec
,
'*'
)))
||
(
supplieddestination
[
lstrlenW
(
supplieddestination
)
-
1
]
==
'\\'
))
{
isDir
=
TRUE
;
isDir
=
TRUE
;
...
...
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