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
7ed9fb0a
Commit
7ed9fb0a
authored
Feb 02, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Implement static_ports_get_Count().
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
15fac20f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
port.c
dlls/hnetcfg/port.c
+14
-3
No files found.
dlls/hnetcfg/port.c
View file @
7ed9fb0a
...
@@ -735,6 +735,16 @@ static BOOL find_port_mapping( LONG port, BSTR protocol, struct port_mapping *re
...
@@ -735,6 +735,16 @@ static BOOL find_port_mapping( LONG port, BSTR protocol, struct port_mapping *re
return
found
;
return
found
;
}
}
static
unsigned
int
get_port_mapping_count
(
void
)
{
unsigned
int
ret
;
AcquireSRWLockExclusive
(
&
upnp_gateway_connection_lock
);
ret
=
upnp_gateway_connection
.
mapping_count
;
ReleaseSRWLockExclusive
(
&
upnp_gateway_connection_lock
);
return
ret
;
}
static
BOOL
is_valid_protocol
(
BSTR
protocol
)
static
BOOL
is_valid_protocol
(
BSTR
protocol
)
{
{
if
(
!
protocol
)
return
FALSE
;
if
(
!
protocol
)
return
FALSE
;
...
@@ -1205,10 +1215,11 @@ static HRESULT WINAPI static_ports_get_Count(
...
@@ -1205,10 +1215,11 @@ static HRESULT WINAPI static_ports_get_Count(
IStaticPortMappingCollection
*
iface
,
IStaticPortMappingCollection
*
iface
,
LONG
*
count
)
LONG
*
count
)
{
{
FIXME
(
"iface %p, count %p stub
.
\n
"
,
iface
,
count
);
TRACE
(
"iface %p, count %p
.
\n
"
,
iface
,
count
);
if
(
count
)
*
count
=
0
;
if
(
!
count
)
return
E_POINTER
;
return
E_NOTIMPL
;
*
count
=
get_port_mapping_count
();
return
S_OK
;
}
}
static
HRESULT
WINAPI
static_ports_Remove
(
static
HRESULT
WINAPI
static_ports_Remove
(
...
...
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