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
f75fc81c
Commit
f75fc81c
authored
Apr 07, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Avoid an unnecessary strlen() call in internet.c.
parent
ceb058e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
internet.c
dlls/wininet/tests/internet.c
+2
-3
No files found.
dlls/wininet/tests/internet.c
View file @
f75fc81c
...
...
@@ -1668,16 +1668,15 @@ static void test_InternetGetConnectedStateExA(void)
buffer
[
0
]
=
0
;
res
=
pInternetGetConnectedStateExA
(
NULL
,
buffer
,
sizeof
(
buffer
),
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
sz
=
strlen
(
buffer
);
ok
(
sz
>
0
,
"Expected a connection name
\n
"
);
ok
(
buffer
[
0
],
"Expected a connection name
\n
"
);
buffer
[
0
]
=
0
;
flags
=
0
;
res
=
pInternetGetConnectedStateExA
(
&
flags
,
buffer
,
sizeof
(
buffer
),
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
flags
,
"Expected at least one flag set
\n
"
);
ok
(
buffer
[
0
],
"Expected a connection name
\n
"
);
sz
=
strlen
(
buffer
);
ok
(
sz
>
0
,
"Expected a connection name
\n
"
);
flags
=
0
;
res
=
pInternetGetConnectedStateExA
(
&
flags
,
NULL
,
sizeof
(
buffer
),
0
);
...
...
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