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
dd18a63b
Commit
dd18a63b
authored
Sep 20, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add a test for IBindCtx::GetRunningObjectTable().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9253ef39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
moniker.c
dlls/ole32/tests/moniker.c
+13
-0
No files found.
dlls/ole32/tests/moniker.c
View file @
dd18a63b
...
...
@@ -3240,6 +3240,7 @@ static void test_pointer_moniker(void)
static
void
test_bind_context
(
void
)
{
IRunningObjectTable
*
rot
,
*
rot2
;
HRESULT
hr
;
IBindCtx
*
pBindCtx
;
IEnumString
*
pEnumString
;
...
...
@@ -3260,6 +3261,18 @@ static void test_bind_context(void)
hr
=
CreateBindCtx
(
0
,
&
pBindCtx
);
ok_ole_success
(
hr
,
"CreateBindCtx"
);
hr
=
IBindCtx_GetRunningObjectTable
(
pBindCtx
,
NULL
);
ok
(
FAILED
(
hr
),
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IBindCtx_GetRunningObjectTable
(
pBindCtx
,
&
rot
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
GetRunningObjectTable
(
0
,
&
rot2
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
rot
==
rot2
,
"Unexpected ROT instance.
\n
"
);
IRunningObjectTable_Release
(
rot
);
IRunningObjectTable_Release
(
rot2
);
bind_opts
.
cbStruct
=
-
1
;
hr
=
IBindCtx_GetBindOptions
(
pBindCtx
,
(
BIND_OPTS
*
)
&
bind_opts
);
ok_ole_success
(
hr
,
"IBindCtx_GetBindOptions"
);
...
...
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