Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
13a33027
Commit
13a33027
authored
Oct 17, 2018
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Oct 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hnetcfg: Add test for IProvideClassInfo interface.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eabed020
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
port.c
dlls/hnetcfg/port.c
+5
-0
policy.c
dlls/hnetcfg/tests/policy.c
+4
-0
No files found.
dlls/hnetcfg/port.c
View file @
13a33027
...
...
@@ -629,6 +629,11 @@ static HRESULT WINAPI upnpnat_QueryInterface(IUPnPNAT *iface, REFIID riid, void
{
*
object
=
iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IProvideClassInfo
))
{
TRACE
(
"IProvideClassInfo not supported."
);
return
E_NOINTERFACE
;
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/hnetcfg/tests/policy.c
View file @
13a33027
...
...
@@ -167,11 +167,15 @@ static void test_IUPnPNAT(void)
IStaticPortMappingCollection
*
static_ports
;
IDynamicPortMappingCollection
*
dync_ports
;
INATEventManager
*
manager
;
IProvideClassInfo
*
provider
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_UPnPNAT
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUPnPNAT
,
(
void
**
)
&
nat
);
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
);
todo_wine
ok
(
hr
==
S_OK
,
"got: %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
&&
static_ports
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment