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
e9d7a9bc
Commit
e9d7a9bc
authored
Nov 08, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Store port name for INetFwOpenPort.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3d728e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
port.c
dlls/hnetcfg/port.c
+11
-2
No files found.
dlls/hnetcfg/port.c
View file @
e9d7a9bc
...
...
@@ -38,6 +38,7 @@ typedef struct fw_port
{
INetFwOpenPort
INetFwOpenPort_iface
;
LONG
refs
;
BSTR
name
;
}
fw_port
;
static
inline
fw_port
*
impl_from_INetFwOpenPort
(
INetFwOpenPort
*
iface
)
...
...
@@ -60,6 +61,7 @@ static ULONG WINAPI fw_port_Release(
if
(
!
refs
)
{
TRACE
(
"destroying %p
\n
"
,
fw_port
);
SysFreeString
(
fw_port
->
name
);
HeapFree
(
GetProcessHeap
(),
0
,
fw_port
);
}
return
refs
;
...
...
@@ -179,8 +181,14 @@ static HRESULT WINAPI fw_port_put_Name(
{
fw_port
*
This
=
impl_from_INetFwOpenPort
(
iface
);
FIXME
(
"%p %s
\n
"
,
This
,
debugstr_w
(
name
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_w
(
name
));
if
(
!
(
name
=
SysAllocString
(
name
)))
return
E_OUTOFMEMORY
;
SysFreeString
(
This
->
name
);
This
->
name
=
name
;
return
S_OK
;
}
static
HRESULT
WINAPI
fw_port_get_IpVersion
(
...
...
@@ -352,6 +360,7 @@ HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fp
->
INetFwOpenPort_iface
.
lpVtbl
=
&
fw_port_vtbl
;
fp
->
refs
=
1
;
fp
->
name
=
NULL
;
*
ppObj
=
&
fp
->
INetFwOpenPort_iface
;
...
...
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