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
bdc91b91
Commit
bdc91b91
authored
Jun 05, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
46c0e56f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
protocol.c
dlls/itss/tests/protocol.c
+3
-3
No files found.
dlls/itss/tests/protocol.c
View file @
bdc91b91
...
...
@@ -501,18 +501,18 @@ static void test_its_protocol_info(IInternetProtocol *protocol)
for
(
i
=
PARSE_CANONICALIZE
;
i
<=
PARSE_UNESCAPE
;
i
++
)
{
if
(
i
!=
PARSE_CANONICALIZE
&&
i
!=
PARSE_SECURITY_URL
)
{
hres
=
IInternetProtocolInfo_ParseUrl
(
info
,
blank_url1
,
i
,
0
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]
),
&
size
,
0
);
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
INET_E_DEFAULT_ACTION
,
"[%d] failed: %08x, expected INET_E_DEFAULT_ACTION
\n
"
,
i
,
hres
);
}
}
for
(
i
=
0
;
i
<
sizeof
(
combine_tests
)
/
sizeof
(
combine_tests
[
0
]
);
i
++
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
combine_tests
);
i
++
)
{
size
=
0xdeadbeef
;
memset
(
buf
,
0xfe
,
sizeof
(
buf
));
hres
=
IInternetProtocolInfo_CombineUrl
(
info
,
a2w
(
combine_tests
[
i
].
base_url
),
a2w
(
combine_tests
[
i
].
rel_url
),
combine_tests
[
i
].
flags
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
),
&
size
,
0
);
ARRAY_SIZE
(
buf
),
&
size
,
0
);
ok
(
hres
==
combine_tests
[
i
].
hres
,
"[%d] CombineUrl returned %08x, expected %08x
\n
"
,
i
,
hres
,
combine_tests
[
i
].
hres
);
ok
(
size
==
(
combine_tests
[
i
].
combined_url
?
strlen
(
combine_tests
[
i
].
combined_url
)
+
1
...
...
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