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
7dc8e9ed
Commit
7dc8e9ed
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
827988bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
programs/xcopy/Makefile.in
+0
-1
xcopy.c
programs/xcopy/xcopy.c
+7
-7
No files found.
programs/xcopy/Makefile.in
View file @
7dc8e9ed
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
xcopy.exe
IMPORTS
=
shell32 user32
...
...
programs/xcopy/xcopy.c
View file @
7dc8e9ed
...
...
@@ -79,7 +79,7 @@ static WCHAR *XCOPY_LoadMessage(UINT id) {
static
WCHAR
msg
[
MAXSTRING
];
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
msg
,
ARRAY_SIZE
(
msg
)))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
WINE_FIXME
(
"LoadString failed with %
l
d
\n
"
,
GetLastError
());
lstrcpyW
(
msg
,
L"Failed!"
);
}
return
msg
;
...
...
@@ -121,7 +121,7 @@ static int WINAPIV XCOPY_wprintf(const WCHAR *format, ...) {
MAX_WRITECONSOLE_SIZE
/
sizeof
(
*
output_bufW
),
&
parms
);
va_end
(
parms
);
if
(
len
==
0
&&
GetLastError
()
!=
ERROR_NO_WORK_DONE
)
{
WINE_FIXME
(
"Could not format string: le=%u, fmt=%s
\n
"
,
GetLastError
(),
wine_dbgstr_w
(
format
));
WINE_FIXME
(
"Could not format string: le=%
l
u, fmt=%s
\n
"
,
GetLastError
(),
wine_dbgstr_w
(
format
));
return
0
;
}
...
...
@@ -178,7 +178,7 @@ static void XCOPY_FailMessage(DWORD err) {
NULL
,
err
,
0
,
(
LPWSTR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
{
WINE_FIXME
(
"FIXME: Cannot display message for error %
d, status %
d
\n
"
,
WINE_FIXME
(
"FIXME: Cannot display message for error %
ld, status %l
d
\n
"
,
err
,
GetLastError
());
}
else
{
XCOPY_wprintf
(
L"%1
\n
"
,
lpMsgBuf
);
...
...
@@ -397,7 +397,7 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec,
/* See if allowed to copy it */
srcAttribs
=
GetFileAttributesW
(
copyFrom
);
WINE_TRACE
(
"Source attribs: %d
\n
"
,
srcAttribs
);
WINE_TRACE
(
"Source attribs: %
l
d
\n
"
,
srcAttribs
);
if
((
srcAttribs
&
FILE_ATTRIBUTE_HIDDEN
)
||
(
srcAttribs
&
FILE_ATTRIBUTE_SYSTEM
))
{
...
...
@@ -414,7 +414,7 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec,
/* See if file exists */
destAttribs
=
GetFileAttributesW
(
copyTo
);
WINE_TRACE
(
"Dest attribs: %d
\n
"
,
srcAttribs
);
WINE_TRACE
(
"Dest attribs: %
l
d
\n
"
,
srcAttribs
);
/* Check date ranges if a destination file already exists */
if
(
!
skipFile
&&
(
flags
&
OPT_DATERANGE
)
&&
...
...
@@ -901,7 +901,7 @@ static int XCOPY_ProcessSourceParm(WCHAR *suppliedsource, WCHAR *stem,
* Validate the source, expanding to full path ensuring it exists
*/
if
(
GetFullPathNameW
(
suppliedsource
,
MAX_PATH
,
actualsource
,
NULL
)
==
0
)
{
WINE_FIXME
(
"Unexpected failure expanding source path (%d)
\n
"
,
GetLastError
());
WINE_FIXME
(
"Unexpected failure expanding source path (%
l
d)
\n
"
,
GetLastError
());
return
RC_INITERROR
;
}
...
...
@@ -995,7 +995,7 @@ static int XCOPY_ProcessDestParm(WCHAR *supplieddestination, WCHAR *stem, WCHAR
* Validate the source, expanding to full path ensuring it exists
*/
if
(
GetFullPathNameW
(
supplieddestination
,
MAX_PATH
,
actualdestination
,
NULL
)
==
0
)
{
WINE_FIXME
(
"Unexpected failure expanding source path (%d)
\n
"
,
GetLastError
());
WINE_FIXME
(
"Unexpected failure expanding source path (%
l
d)
\n
"
,
GetLastError
());
return
RC_INITERROR
;
}
...
...
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