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
46c0e56f
Commit
46c0e56f
authored
Jun 05, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5e55490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+3
-3
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
46c0e56f
...
...
@@ -1459,7 +1459,7 @@ static void test_GetAdaptersAddresses(void)
S
(
U
(
*
ua
)).
Length
<
sizeof
(
IP_ADAPTER_UNICAST_ADDRESS_LH
)
?
0
:
ua
->
OnLinkPrefixLength
);
ua
=
ua
->
Next
;
}
for
(
i
=
0
,
temp
[
0
]
=
'\0'
;
i
<
sizeof
(
aa
->
ZoneIndices
)
/
sizeof
(
aa
->
ZoneIndices
[
0
]
);
i
++
)
for
(
i
=
0
,
temp
[
0
]
=
'\0'
;
i
<
ARRAY_SIZE
(
aa
->
ZoneIndices
);
i
++
)
sprintf
(
temp
+
strlen
(
temp
),
"%d "
,
aa
->
ZoneIndices
[
i
]);
trace
(
"status %u index %u zone %s
\n
"
,
aa
->
OperStatus
,
aa
->
Ipv6IfIndex
,
temp
);
prefix
=
aa
->
FirstPrefix
;
...
...
@@ -1836,7 +1836,7 @@ static void test_interface_identifier_conversion(void)
ok
(
ret
==
ERROR_NOT_ENOUGH_MEMORY
,
"got %u
\n
"
,
ret
);
nameW
[
0
]
=
0
;
len
=
sizeof
(
nameW
)
/
sizeof
(
nameW
[
0
]
);
len
=
ARRAY_SIZE
(
nameW
);
ret
=
pConvertInterfaceLuidToNameW
(
&
luid
,
nameW
,
len
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
nameW
[
0
],
"name not set
\n
"
);
...
...
@@ -1855,7 +1855,7 @@ static void test_interface_identifier_conversion(void)
ok
(
ret
==
ERROR_NOT_ENOUGH_MEMORY
,
"got %u
\n
"
,
ret
);
nameA
[
0
]
=
0
;
len
=
sizeof
(
nameA
)
/
sizeof
(
nameA
[
0
]
);
len
=
ARRAY_SIZE
(
nameA
);
ret
=
pConvertInterfaceLuidToNameA
(
&
luid
,
nameA
,
len
);
ok
(
!
ret
,
"got %u
\n
"
,
ret
);
ok
(
nameA
[
0
],
"name not set
\n
"
);
...
...
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