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
3f3083d7
Commit
3f3083d7
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
507bc401
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
userenv.c
dlls/userenv/tests/userenv.c
+4
-4
No files found.
dlls/userenv/tests/userenv.c
View file @
3f3083d7
...
...
@@ -158,7 +158,7 @@ static void test_create_env(void)
}
/* Test for common environment variables (NT4 and higher) */
for
(
i
=
0
;
i
<
sizeof
(
common_vars
)
/
sizeof
(
common_vars
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
common_vars
);
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
{
...
...
@@ -175,7 +175,7 @@ static void test_create_env(void)
}
else
{
for
(
i
=
0
;
i
<
sizeof
(
common_post_nt4_vars
)
/
sizeof
(
common_post_nt4_vars
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
common_post_nt4_vars
);
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
{
...
...
@@ -190,7 +190,7 @@ static void test_create_env(void)
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
if
(
sizeof
(
void
*
)
==
8
||
is_wow64
)
{
for
(
i
=
0
;
i
<
sizeof
(
common_win64_vars
)
/
sizeof
(
common_win64_vars
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
common_win64_vars
);
i
++
)
{
for
(
j
=
0
;
j
<
4
;
j
++
)
{
...
...
@@ -215,7 +215,7 @@ static void test_create_env(void)
expect
(
TRUE
,
r
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
for
(
i
=
0
;
i
<
sizeof
(
env
)
/
sizeof
(
env
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
env
);
i
++
)
{
r
=
DestroyEnvironmentBlock
(
env
[
i
]);
expect
(
TRUE
,
r
);
...
...
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