Nikolay Sivov : hnetcfg: Store port number for INetFwOpenPort.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Nov 10 10:36:20 CST 2015


Module: wine
Branch: master
Commit: b7a67eb30f314a37de77fa29d3a684226ba1e657
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7a67eb30f314a37de77fa29d3a684226ba1e657

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Nov  9 21:21:35 2015 +0300

hnetcfg: Store port number for INetFwOpenPort.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hnetcfg/port.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/hnetcfg/port.c b/dlls/hnetcfg/port.c
index c79c997..4cc1ba6 100644
--- a/dlls/hnetcfg/port.c
+++ b/dlls/hnetcfg/port.c
@@ -40,6 +40,7 @@ typedef struct fw_port
     LONG refs;
     BSTR name;
     NET_FW_IP_PROTOCOL protocol;
+    LONG port;
 } fw_port;
 
 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 );
 
-    FIXME("%p %d\n", This, portNumber);
-    return E_NOTIMPL;
+    TRACE("%p %d\n", This, portNumber);
+    This->port = portNumber;
+    return S_OK;
 }
 
 static HRESULT WINAPI fw_port_get_Scope(
@@ -368,6 +370,7 @@ HRESULT NetFwOpenPort_create( IUnknown *pUnkOuter, LPVOID *ppObj )
     fp->refs = 1;
     fp->name = NULL;
     fp->protocol = NET_FW_IP_PROTOCOL_TCP;
+    fp->port = 0;
 
     *ppObj = &fp->INetFwOpenPort_iface;
 




More information about the wine-cvs mailing list