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
1e2a24e9
Commit
1e2a24e9
authored
Apr 07, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix InternetGetConnectedStateEx() parameter checking.
It should set the error code if given a non-zero reserved value.
parent
6fa67bc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
internet.c
dlls/wininet/internet.c
+3
-0
internet.c
dlls/wininet/tests/internet.c
+5
-0
No files found.
dlls/wininet/internet.c
View file @
1e2a24e9
...
...
@@ -1216,7 +1216,10 @@ BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnecti
/* Must be zero */
if
(
dwReserved
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
for
(;;)
{
...
...
dlls/wininet/tests/internet.c
View file @
1e2a24e9
...
...
@@ -1759,6 +1759,11 @@ static void test_InternetGetConnectedStateExW(void)
res
=
pInternetGetConnectedStateExW
(
NULL
,
NULL
,
0
,
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
SetLastError
(
0xdeadbeef
);
res
=
pInternetGetConnectedStateExW
(
NULL
,
NULL
,
0
,
1
);
ok
(
res
==
FALSE
,
"Expected TRUE, got %d
\n
"
,
res
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Unexpected gle %lu
\n
"
,
GetLastError
());
flags
=
0
;
res
=
pInternetGetConnectedStateExW
(
&
flags
,
NULL
,
0
,
0
);
ok
(
res
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
res
);
...
...
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