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
49845c51
Commit
49845c51
authored
May 27, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
May 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Return INTERNET_RAS_INSTALLED flag from InternetGetConnectedStateExW().
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
parent
5e25a454
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
internet.c
dlls/wininet/internet.c
+2
-2
internet.c
dlls/wininet/tests/internet.c
+0
-2
No files found.
dlls/wininet/internet.c
View file @
49845c51
...
...
@@ -1213,8 +1213,8 @@ BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnecti
return
FALSE
;
if
(
lpdwStatus
)
{
WARN
(
"always returning LAN connection.
\n
"
);
*
lpdwStatus
=
INTERNET_CONNECTION_LAN
;
WARN
(
"always returning LAN connection
and RAS installed
.
\n
"
);
*
lpdwStatus
=
INTERNET_CONNECTION_LAN
|
INTERNET_RAS_INSTALLED
;
}
/* When the buffer size is zero LoadStringW fills the buffer with a pointer to
...
...
dlls/wininet/tests/internet.c
View file @
49845c51
...
...
@@ -1632,7 +1632,6 @@ static void test_InternetGetConnectedStateExA(void)
buffer
[
0
]
=
0
;
res
=
pInternetGetConnectedStateExA
(
&
flags
,
buffer
,
sizeof
(
buffer
),
0
);
trace
(
"Internet Connection: Flags 0x%02lx - Name '%s'
\n
"
,
flags
,
buffer
);
todo_wine
ok
(
flags
&
INTERNET_RAS_INSTALLED
,
"Missing RAS flag
\n
"
);
if
(
!
res
)
{
win_skip
(
"InternetGetConnectedStateExA tests require a valid connection
\n
"
);
...
...
@@ -1734,7 +1733,6 @@ static void test_InternetGetConnectedStateExW(void)
buffer
[
0
]
=
0
;
res
=
pInternetGetConnectedStateExW
(
&
flags
,
buffer
,
ARRAY_SIZE
(
buffer
),
0
);
trace
(
"Internet Connection: Flags 0x%02lx - Name '%s'
\n
"
,
flags
,
wine_dbgstr_w
(
buffer
));
todo_wine
ok
(
flags
&
INTERNET_RAS_INSTALLED
,
"Missing RAS flag
\n
"
);
if
(
!
res
)
{
win_skip
(
"InternetGetConnectedStateExW tests require a valid connection
\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