forked from Mirrors/wine-wine
hnetcfg: Store port number for INetFwOpenPort.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
341ddeb3c1
commit
b7a67eb30f
|
@ -40,6 +40,7 @@ typedef struct fw_port
|
||||||
LONG refs;
|
LONG refs;
|
||||||
BSTR name;
|
BSTR name;
|
||||||
NET_FW_IP_PROTOCOL protocol;
|
NET_FW_IP_PROTOCOL protocol;
|
||||||
|
LONG port;
|
||||||
} fw_port;
|
} fw_port;
|
||||||
|
|
||||||
static inline fw_port *impl_from_INetFwOpenPort( INetFwOpenPort *iface )
|
static inline fw_port *impl_from_INetFwOpenPort( INetFwOpenPort *iface )
|
||||||
|
@ -253,8 +254,9 @@ static HRESULT WINAPI fw_port_put_Port(
|
||||||
{
|
{
|
||||||
fw_port *This = impl_from_INetFwOpenPort( iface );
|
fw_port *This = impl_from_INetFwOpenPort( iface );
|
||||||
|
|
||||||
FIXME("%p %d\n", This, portNumber);
|
TRACE("%p %d\n", This, portNumber);
|
||||||
return E_NOTIMPL;
|
This->port = portNumber;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI fw_port_get_Scope(
|
static HRESULT WINAPI fw_port_get_Scope(
|
||||||
|
@ -368,6 +370,7 @@ HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
|
||||||
fp->refs = 1;
|
fp->refs = 1;
|
||||||
fp->name = NULL;
|
fp->name = NULL;
|
||||||
fp->protocol = NET_FW_IP_PROTOCOL_TCP;
|
fp->protocol = NET_FW_IP_PROTOCOL_TCP;
|
||||||
|
fp->port = 0;
|
||||||
|
|
||||||
*ppObj = &fp->INetFwOpenPort_iface;
|
*ppObj = &fp->INetFwOpenPort_iface;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue