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
2dc9af8e
Commit
2dc9af8e
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d3a71dec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
info.c
dlls/version/tests/info.c
+2
-2
No files found.
dlls/version/tests/info.c
View file @
2dc9af8e
...
...
@@ -548,7 +548,7 @@ static void test_VerQueryValueA(void)
ok
(
len
==
0
,
"VerQueryValue returned %u, expected 0
\n
"
,
len
);
ok
(
p
!=
(
char
*
)
0xdeadbeef
,
"not expected 0xdeadbeef
\n
"
);
for
(
i
=
0
;
i
<
sizeof
(
value_name
)
/
sizeof
(
value_name
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
value_name
);
i
++
)
{
sprintf
(
buf
,
"
\\
StringFileInfo
\\
%08x
\\
%s"
,
translation
,
value_name
[
i
]);
p
=
(
char
*
)
0xdeadbeef
;
...
...
@@ -692,7 +692,7 @@ static void test_GetFileVersionInfoEx(void)
return
;
}
for
(
i
=
0
;
i
<
sizeof
(
test_flags
)
/
sizeof
(
test_flags
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
test_flags
);
i
++
)
{
size
=
pGetFileVersionInfoSizeExW
(
test_flags
[
i
],
kernel32W
,
NULL
);
ok
(
size
,
"[%u] GetFileVersionInfoSizeEx(kernel32) error %u
\n
"
,
i
,
GetLastError
());
...
...
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