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
0b788e9a
Commit
0b788e9a
authored
Jul 24, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e4f68323
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gui.c
programs/winetest/gui.c
+1
-1
main.c
programs/winetest/main.c
+2
-2
No files found.
programs/winetest/gui.c
View file @
0b788e9a
...
...
@@ -547,7 +547,7 @@ report (enum report_type t, ...)
}
va_start
(
ap
,
t
);
if
(
t
<
sizeof
text_funcs
/
sizeof
text_funcs
[
0
]
)
ret
=
funcs
[
t
](
ap
);
if
(
t
<
ARRAY_SIZE
(
text_funcs
)
)
ret
=
funcs
[
t
](
ap
);
else
report
(
R_WARNING
,
"unimplemented report type: %d"
,
t
);
va_end
(
ap
);
return
ret
;
...
...
programs/winetest/main.c
View file @
0b788e9a
...
...
@@ -461,7 +461,7 @@ static void print_language(void)
if
(
pGetSystemPreferredUILanguages
&&
!
running_under_wine
())
{
WCHAR
langW
[
32
];
ULONG
num
,
size
=
sizeof
(
langW
)
/
sizeof
(
langW
[
0
]
);
ULONG
num
,
size
=
ARRAY_SIZE
(
langW
);
if
(
pGetSystemPreferredUILanguages
(
MUI_LANGUAGE_ID
,
&
num
,
langW
,
&
size
))
{
char
lang
[
32
],
*
p
=
lang
;
...
...
@@ -1263,7 +1263,7 @@ int main( int argc, char *argv[] )
exit
(
0
);
}
else
if
((
argv
[
i
][
0
]
!=
'-'
&&
argv
[
i
][
0
]
!=
'/'
)
||
argv
[
i
][
2
])
{
if
(
nb_filters
==
sizeof
(
filters
)
/
sizeof
(
filters
[
0
]
))
if
(
nb_filters
==
ARRAY_SIZE
(
filters
))
{
report
(
R_ERROR
,
"Too many test filters specified"
);
exit
(
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