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
c99d5f31
Commit
c99d5f31
authored
Jul 13, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcopy: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8969cf98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
xcopy.c
programs/xcopy/xcopy.c
+5
-5
No files found.
programs/xcopy/xcopy.c
View file @
c99d5f31
...
...
@@ -84,7 +84,7 @@ static WCHAR *XCOPY_LoadMessage(UINT id) {
static
WCHAR
msg
[
MAXSTRING
];
const
WCHAR
failedMsg
[]
=
{
'F'
,
'a'
,
'i'
,
'l'
,
'e'
,
'd'
,
'!'
,
0
};
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
msg
,
sizeof
(
msg
)
/
sizeof
(
WCHAR
)))
{
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
msg
,
ARRAY_SIZE
(
msg
)))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
lstrcpyW
(
msg
,
failedMsg
);
}
...
...
@@ -269,7 +269,7 @@ static BOOL XCOPY_ProcessExcludeFile(WCHAR* filename, WCHAR* endOfName) {
}
/* Process line by line */
while
(
fgetws
(
buffer
,
sizeof
(
buffer
)
/
sizeof
(
WCHAR
),
inFile
)
!=
NULL
)
{
while
(
fgetws
(
buffer
,
ARRAY_SIZE
(
buffer
),
inFile
)
!=
NULL
)
{
EXCLUDELIST
*
thisEntry
;
int
length
=
lstrlenW
(
buffer
);
...
...
@@ -840,9 +840,9 @@ static int XCOPY_ParseCommandLine(WCHAR *suppliedsource,
/* Debug info: */
FileTimeToSystemTime
(
&
dateRange
,
&
st
);
GetDateFormatW
(
0
,
DATE_SHORTDATE
,
&
st
,
NULL
,
datestring
,
sizeof
(
datestring
)
/
sizeof
(
WCHAR
));
ARRAY_SIZE
(
datestring
));
GetTimeFormatW
(
0
,
TIME_NOSECONDS
,
&
st
,
NULL
,
timestring
,
sizeof
(
timestring
)
/
sizeof
(
WCHAR
));
NULL
,
timestring
,
ARRAY_SIZE
(
timestring
));
WINE_TRACE
(
"Date being used is: %s %s
\n
"
,
wine_dbgstr_w
(
datestring
),
wine_dbgstr_w
(
timestring
));
...
...
@@ -987,7 +987,7 @@ static int XCOPY_ProcessSourceParm(WCHAR *suppliedsource, WCHAR *stem,
lstrcpyW
(
spec
,
suppliedsource
+
2
);
}
else
{
WCHAR
curdir
[
MAXSTRING
];
GetCurrentDirectoryW
(
sizeof
(
curdir
)
/
sizeof
(
WCHAR
),
curdir
);
GetCurrentDirectoryW
(
ARRAY_SIZE
(
curdir
),
curdir
);
stem
[
0
]
=
curdir
[
0
];
stem
[
1
]
=
curdir
[
1
];
stem
[
2
]
=
0x00
;
...
...
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