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
ea34c87c
Commit
ea34c87c
authored
Jun 03, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy.exe: Convert from main to wmain.
parent
a1639ebf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Makefile.in
programs/xcopy/Makefile.in
+1
-1
xcopy.c
programs/xcopy/xcopy.c
+1
-5
No files found.
programs/xcopy/Makefile.in
View file @
ea34c87c
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
xcopy.exe
APPMODE
=
-mconsole
APPMODE
=
-mconsole
-municode
IMPORTS
=
shell32 user32 msvcrt kernel32
EXTRADEFS
=
-DUNICODE
EXTRAINCL
=
-I
$(TOPSRCDIR)
/include/msvcrt
...
...
programs/xcopy/xcopy.c
View file @
ea34c87c
...
...
@@ -93,7 +93,7 @@ static WCHAR copyTo[MAX_PATH];
Processes the args, and drives the actual copying
========================================================================= */
int
main
(
int
argc
,
char
*
argv
[])
int
wmain
(
int
argc
,
WCHAR
*
argvW
[])
{
int
rc
=
0
;
WCHAR
suppliedsource
[
MAX_PATH
]
=
{
0
};
/* As supplied on the cmd line */
...
...
@@ -104,7 +104,6 @@ int main (int argc, char *argv[])
WCHAR
destinationspec
[
MAX_PATH
]
=
{
0
};
/* Filespec of destination */
WCHAR
copyCmd
[
MAXSTRING
];
/* COPYCMD env var */
DWORD
flags
=
0
;
/* Option flags */
LPWSTR
*
argvW
=
NULL
;
const
WCHAR
PROMPTSTR1
[]
=
{
'/'
,
'Y'
,
0
};
const
WCHAR
PROMPTSTR2
[]
=
{
'/'
,
'y'
,
0
};
const
WCHAR
COPYCMD
[]
=
{
'C'
,
'O'
,
'P'
,
'Y'
,
'C'
,
'M'
,
'D'
,
0
};
...
...
@@ -114,9 +113,6 @@ int main (int argc, char *argv[])
* Parse the command line
*/
/* overwrite the command line */
argvW
=
CommandLineToArgvW
(
GetCommandLineW
(),
&
argc
);
/* Confirm at least one parameter */
if
(
argc
<
2
)
{
XCOPY_wprintf
(
XCOPY_LoadMessage
(
STRING_INVPARMS
));
...
...
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