Commit 13a33027 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

hnetcfg: Add test for IProvideClassInfo interface.

parent eabed020
...@@ -629,6 +629,11 @@ static HRESULT WINAPI upnpnat_QueryInterface(IUPnPNAT *iface, REFIID riid, void ...@@ -629,6 +629,11 @@ static HRESULT WINAPI upnpnat_QueryInterface(IUPnPNAT *iface, REFIID riid, void
{ {
*object = iface; *object = iface;
} }
else if(IsEqualGUID( riid, &IID_IProvideClassInfo))
{
TRACE("IProvideClassInfo not supported.");
return E_NOINTERFACE;
}
else else
{ {
FIXME("interface %s not implemented\n", debugstr_guid(riid)); FIXME("interface %s not implemented\n", debugstr_guid(riid));
......
...@@ -167,11 +167,15 @@ static void test_IUPnPNAT(void) ...@@ -167,11 +167,15 @@ static void test_IUPnPNAT(void)
IStaticPortMappingCollection *static_ports; IStaticPortMappingCollection *static_ports;
IDynamicPortMappingCollection *dync_ports; IDynamicPortMappingCollection *dync_ports;
INATEventManager *manager; INATEventManager *manager;
IProvideClassInfo *provider;
HRESULT hr; HRESULT hr;
hr = CoCreateInstance(&CLSID_UPnPNAT, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IUPnPNAT, (void**)&nat); hr = CoCreateInstance(&CLSID_UPnPNAT, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER, &IID_IUPnPNAT, (void**)&nat);
ok(hr == S_OK, "got: %08x\n", hr); ok(hr == S_OK, "got: %08x\n", hr);
hr = IUPnPNAT_QueryInterface(nat, &IID_IProvideClassInfo, (void**)&provider);
ok(hr == E_NOINTERFACE, "got: %08x\n", hr);
hr = IUPnPNAT_get_StaticPortMappingCollection(nat, &static_ports); hr = IUPnPNAT_get_StaticPortMappingCollection(nat, &static_ports);
todo_wine ok(hr == S_OK, "got: %08x\n", hr); todo_wine ok(hr == S_OK, "got: %08x\n", hr);
if(hr == S_OK && static_ports) if(hr == S_OK && static_ports)
......
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