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
91835d94
Commit
91835d94
authored
Sep 02, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Implement INetworkConnection::GetNetwork.
parent
6defcbe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
list.c
dlls/netprofm/list.c
+13
-2
No files found.
dlls/netprofm/list.c
View file @
91835d94
...
...
@@ -67,6 +67,7 @@ struct connection
LONG
refs
;
struct
list
entry
;
GUID
id
;
INetwork
*
network
;
VARIANT_BOOL
connected_to_internet
;
VARIANT_BOOL
connected
;
};
...
...
@@ -934,6 +935,7 @@ static ULONG WINAPI connection_Release(
if
(
!
(
refs
=
InterlockedDecrement
(
&
connection
->
refs
)))
{
INetwork_Release
(
connection
->
network
);
list_remove
(
&
connection
->
entry
);
heap_free
(
connection
);
}
...
...
@@ -989,8 +991,13 @@ static HRESULT WINAPI connection_GetNetwork(
INetworkConnection
*
iface
,
INetwork
**
ppNetwork
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
ppNetwork
);
return
E_NOTIMPL
;
struct
connection
*
connection
=
impl_from_INetworkConnection
(
iface
);
TRACE
(
"%p, %p
\n
"
,
iface
,
ppNetwork
);
*
ppNetwork
=
connection
->
network
;
INetwork_AddRef
(
*
ppNetwork
);
return
S_OK
;
}
static
HRESULT
WINAPI
connection_get_IsConnectedToInternet
(
...
...
@@ -1088,6 +1095,7 @@ static struct connection *create_connection( const GUID *id )
ret
->
INetworkConnection_iface
.
lpVtbl
=
&
connection_vtbl
;
ret
->
refs
=
1
;
ret
->
id
=
*
id
;
ret
->
network
=
NULL
;
ret
->
connected
=
VARIANT_FALSE
;
ret
->
connected_to_internet
=
VARIANT_FALSE
;
list_init
(
&
ret
->
entry
);
...
...
@@ -1139,6 +1147,9 @@ static void init_networks( struct list_manager *mgr )
connection
->
connected_to_internet
=
VARIANT_TRUE
;
}
connection
->
network
=
&
network
->
INetwork_iface
;
INetwork_AddRef
(
connection
->
network
);
list_add_tail
(
&
mgr
->
networks
,
&
network
->
entry
);
list_add_tail
(
&
mgr
->
connections
,
&
connection
->
entry
);
}
...
...
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