Nikolay Sivov : ole32/tests: Add a test for IBindCtx::GetRunningObjectTable().
Alexandre Julliard
julliard at winehq.org
Mon Sep 20 16:26:20 CDT 2021
Module: wine
Branch: master
Commit: dd18a63b520b949259444d174c54b81f264432e6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dd18a63b520b949259444d174c54b81f264432e6
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Sep 20 13:08:44 2021 +0300
ole32/tests: Add a test for IBindCtx::GetRunningObjectTable().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ole32/tests/moniker.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index 550ba802cfa..df4b5c7bc88 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -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");
More information about the wine-cvs
mailing list