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
a551821a
Commit
a551821a
authored
Apr 07, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Consistently use strlen() in the InternetGetConnectedStateExA() tests.
parent
e7c6cddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
internet.c
dlls/wininet/tests/internet.c
+3
-3
No files found.
dlls/wininet/tests/internet.c
View file @
a551821a
...
...
@@ -1730,7 +1730,7 @@ static void test_InternetGetConnectedStateExA(void)
res
=
pInternetGetConnectedStateExA
(
&
flags
,
buffer
,
sz
,
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
flags
,
"Expected at least one flag set
\n
"
);
ok
(
sz
-
1
==
strlen
(
buffer
),
"Expected len %lu, got %
u: %s
\n
"
,
sz
-
1
,
lstrlenA
(
buffer
),
wine_dbgstr_a
(
buffer
));
ok
(
sz
-
1
==
strlen
(
buffer
),
"Expected len %lu, got %
Iu: %s
\n
"
,
sz
-
1
,
strlen
(
buffer
),
wine_dbgstr_a
(
buffer
));
memset
(
buffer
,
'z'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
0
;
...
...
@@ -1738,7 +1738,7 @@ static void test_InternetGetConnectedStateExA(void)
res
=
pInternetGetConnectedStateExA
(
&
flags
,
buffer
,
sz
/
2
,
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
flags
,
"Expected at least one flag set
\n
"
);
ok
(
sz
/
2
-
1
==
strlen
(
buffer
),
"Expected len %lu, got %
u: %s
\n
"
,
sz
/
2
-
1
,
lstrlenA
(
buffer
),
wine_dbgstr_a
(
buffer
));
ok
(
sz
/
2
-
1
==
strlen
(
buffer
),
"Expected len %lu, got %
Iu: %s
\n
"
,
sz
/
2
-
1
,
strlen
(
buffer
),
wine_dbgstr_a
(
buffer
));
memset
(
buffer
,
'z'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
0
;
...
...
@@ -1746,7 +1746,7 @@ static void test_InternetGetConnectedStateExA(void)
res
=
pInternetGetConnectedStateExA
(
&
flags
,
buffer
,
2
,
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
flags
,
"Expected at least one flag set
\n
"
);
ok
(
strlen
(
buffer
)
==
1
,
"Expected len 1, got %
u: %s
\n
"
,
lstrlenA
(
buffer
),
wine_dbgstr_a
(
buffer
));
ok
(
strlen
(
buffer
)
==
1
,
"Expected len 1, got %
Iu: %s
\n
"
,
strlen
(
buffer
),
wine_dbgstr_a
(
buffer
));
memset
(
buffer
,
'z'
,
sizeof
(
buffer
)
-
1
);
buffer
[
sizeof
(
buffer
)
-
1
]
=
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