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
ea6cc724
Commit
ea6cc724
authored
May 29, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f0647e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
batch.c
programs/cmd/tests/batch.c
+2
-3
No files found.
programs/cmd/tests/batch.c
View file @
ea6cc724
...
...
@@ -25,7 +25,7 @@
static
char
workdir
[
MAX_PATH
];
static
DWORD
workdir_len
;
static
char
drive
[
2
];
static
const
DWORD
drive_len
=
sizeof
(
drive
)
/
sizeof
(
drive
[
0
]
);
static
const
DWORD
drive_len
=
ARRAY_SIZE
(
drive
);
static
char
path
[
MAX_PATH
];
static
DWORD
path_len
;
static
char
shortpath
[
MAX_PATH
];
...
...
@@ -469,8 +469,7 @@ START_TEST(batch)
}
else
{
path_len
=
1
;
/* \ */
}
shortpath_len
=
GetShortPathNameA
(
path
,
shortpath
,
sizeof
(
shortpath
)
/
sizeof
(
shortpath
[
0
]));
shortpath_len
=
GetShortPathNameA
(
path
,
shortpath
,
ARRAY_SIZE
(
shortpath
));
argc
=
winetest_get_mainargs
(
&
argv
);
if
(
argc
>
2
)
...
...
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