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
7ed17ec2
Commit
7ed17ec2
authored
Nov 26, 2022
by
Robert Wilhelm
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wshom.ocx: Add WShNetwork object creation test.
parent
57fa2ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
wshom.c
dlls/wshom.ocx/tests/wshom.c
+16
-0
No files found.
dlls/wshom.ocx/tests/wshom.c
View file @
7ed17ec2
...
@@ -673,6 +673,21 @@ static void test_popup(void)
...
@@ -673,6 +673,21 @@ static void test_popup(void)
SysFreeString
(
text
);
SysFreeString
(
text
);
IWshShell_Release
(
sh
);
IWshShell_Release
(
sh
);
}
}
static
void
test_wshnetwork
(
void
)
{
IDispatch
*
disp
;
IUnknown
*
network
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_WshNetwork
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDispatch_QueryInterface
(
disp
,
&
IID_IWshNetwork2
,
(
void
**
)
&
network
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IUnknown_Release
(
network
);
}
START_TEST
(
wshom
)
START_TEST
(
wshom
)
{
{
...
@@ -693,6 +708,7 @@ START_TEST(wshom)
...
@@ -693,6 +708,7 @@ START_TEST(wshom)
test_wshshell
();
test_wshshell
();
test_registry
();
test_registry
();
test_popup
();
test_popup
();
test_wshnetwork
();
CoUninitialize
();
CoUninitialize
();
}
}
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