Commit 341ddeb3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

hnetcfg: Store protocol for INetFwOpenPort.

parent 0b33b80f
...@@ -39,6 +39,7 @@ typedef struct fw_port ...@@ -39,6 +39,7 @@ typedef struct fw_port
INetFwOpenPort INetFwOpenPort_iface; INetFwOpenPort INetFwOpenPort_iface;
LONG refs; LONG refs;
BSTR name; BSTR name;
NET_FW_IP_PROTOCOL protocol;
} fw_port; } fw_port;
static inline fw_port *impl_from_INetFwOpenPort( INetFwOpenPort *iface ) static inline fw_port *impl_from_INetFwOpenPort( INetFwOpenPort *iface )
...@@ -227,8 +228,13 @@ static HRESULT WINAPI fw_port_put_Protocol( ...@@ -227,8 +228,13 @@ static HRESULT WINAPI fw_port_put_Protocol(
{ {
fw_port *This = impl_from_INetFwOpenPort( iface ); fw_port *This = impl_from_INetFwOpenPort( iface );
FIXME("%p %u\n", This, ipProtocol); TRACE("%p %u\n", This, ipProtocol);
return E_NOTIMPL;
if (ipProtocol != NET_FW_IP_PROTOCOL_TCP && ipProtocol != NET_FW_IP_PROTOCOL_UDP)
return E_INVALIDARG;
This->protocol = ipProtocol;
return S_OK;
} }
static HRESULT WINAPI fw_port_get_Port( static HRESULT WINAPI fw_port_get_Port(
...@@ -361,6 +367,7 @@ HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj ) ...@@ -361,6 +367,7 @@ HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
fp->INetFwOpenPort_iface.lpVtbl = &fw_port_vtbl; fp->INetFwOpenPort_iface.lpVtbl = &fw_port_vtbl;
fp->refs = 1; fp->refs = 1;
fp->name = NULL; fp->name = NULL;
fp->protocol = NET_FW_IP_PROTOCOL_TCP;
*ppObj = &fp->INetFwOpenPort_iface; *ppObj = &fp->INetFwOpenPort_iface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment