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
01fb4b5e
Commit
01fb4b5e
authored
Oct 18, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Handle non-internet connectivity.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
0ad36ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
list.c
dlls/netprofm/list.c
+31
-3
No files found.
dlls/netprofm/list.c
View file @
01fb4b5e
...
...
@@ -480,9 +480,17 @@ static HRESULT WINAPI network_GetConnectivity(
INetwork
*
iface
,
NLM_CONNECTIVITY
*
pConnectivity
)
{
struct
network
*
network
=
impl_from_INetwork
(
iface
);
FIXME
(
"%p, %p
\n
"
,
iface
,
pConnectivity
);
*
pConnectivity
=
NLM_CONNECTIVITY_IPV4_INTERNET
;
*
pConnectivity
=
NLM_CONNECTIVITY_DISCONNECTED
;
if
(
network
->
connected_to_internet
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_INTERNET
;
else
if
(
network
->
connected
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_LOCALNETWORK
;
return
S_OK
;
}
...
...
@@ -1330,9 +1338,21 @@ static HRESULT WINAPI list_manager_GetConnectivity(
INetworkListManager
*
iface
,
NLM_CONNECTIVITY
*
pConnectivity
)
{
struct
list_manager
*
mgr
=
impl_from_INetworkListManager
(
iface
);
struct
network
*
network
;
FIXME
(
"%p, %p
\n
"
,
iface
,
pConnectivity
);
*
pConnectivity
=
NLM_CONNECTIVITY_IPV4_INTERNET
;
*
pConnectivity
=
NLM_CONNECTIVITY_DISCONNECTED
;
LIST_FOR_EACH_ENTRY
(
network
,
&
mgr
->
networks
,
struct
network
,
entry
)
{
if
(
network
->
connected_to_internet
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_INTERNET
;
else
if
(
network
->
connected
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_LOCALNETWORK
;
}
return
S_OK
;
}
...
...
@@ -1565,9 +1585,17 @@ static HRESULT WINAPI connection_GetConnectivity(
INetworkConnection
*
iface
,
NLM_CONNECTIVITY
*
pConnectivity
)
{
struct
connection
*
connection
=
impl_from_INetworkConnection
(
iface
);
FIXME
(
"%p, %p
\n
"
,
iface
,
pConnectivity
);
*
pConnectivity
=
NLM_CONNECTIVITY_IPV4_INTERNET
;
*
pConnectivity
=
NLM_CONNECTIVITY_DISCONNECTED
;
if
(
connection
->
connected_to_internet
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_INTERNET
;
else
if
(
connection
->
connected
)
*
pConnectivity
|=
NLM_CONNECTIVITY_IPV4_LOCALNETWORK
;
return
S_OK
;
}
...
...
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