Commit cbf2ca57 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

hnetcfg: Return stub interface from upnpnat_get_StaticPortMappingCollection() if UPNP IGD is found.

parent 162dc17e
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = hnetcfg.dll
IMPORTS = oleaut32 ole32 advapi32 mpr uuid
DELAYIMPORTS = ws2_32
EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
......
......@@ -114,7 +114,8 @@ static REFIID tid_id[] =
&IID_INetFwPolicy,
&IID_INetFwPolicy2,
&IID_INetFwProfile,
&IID_IUPnPNAT
&IID_IUPnPNAT,
&IID_IStaticPortMappingCollection,
};
HRESULT get_typeinfo( enum type_id tid, ITypeInfo **ret )
......
......@@ -28,6 +28,7 @@ enum type_id
INetFwProfile_tid,
INetFwRules_tid,
IUPnPNAT_tid,
IStaticPortMappingCollection_tid,
last_tid
};
......
......@@ -184,7 +184,8 @@ static void test_static_port_mapping_collection( IStaticPortMappingCollection *p
refcount = get_refcount((IUnknown *)ports);
hr = IStaticPortMappingCollection_get__NewEnum(ports, &unk);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
todo_wine ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
if (FAILED(hr)) return;
hr = IUnknown_QueryInterface(unk, &IID_IEnumVARIANT, (void **)&enum_ports);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
......
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