Nikolay Sivov : ole32/tests: Add a GetComparisonData() test for composite.

Alexandre Julliard julliard at winehq.org
Wed Sep 29 15:54:09 CDT 2021


Module: wine
Branch: master
Commit: b8ba0e6fe082977e9d7af99f05c8e0c3dad32988
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b8ba0e6fe082977e9d7af99f05c8e0c3dad32988

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Sep 29 10:23:24 2021 +0300

ole32/tests: Add a GetComparisonData() test for composite.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/tests/moniker.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index a7c0714a5d7..2d7f0789924 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -3173,6 +3173,7 @@ static void test_generic_composite_moniker(void)
     IUnknown *unknown;
     IROTData *rotdata;
     IMarshal *marshal;
+    BYTE buffer[100];
     IStream *stream;
     unsigned int i;
     FILETIME ft;
@@ -3606,6 +3607,17 @@ todo_wine
     hr = IMoniker_GetDisplayName(moniker, bindctx, NULL, &str);
     ok(hr == E_NOTIMPL, "Unexpected hr %#x.\n", hr);
 
+    /* Comparison data, pointer component does not support it. */
+    hr = IMoniker_QueryInterface(moniker, &IID_IROTData, (void **)&rotdata);
+    ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+    len = 0;
+    hr = IROTData_GetComparisonData(rotdata, buffer, sizeof(buffer), &len);
+todo_wine {
+    ok(hr == E_NOTIMPL, "Unexpected hr %#x.\n", hr);
+    ok(!len, "Unexpected length %u.\n", len);
+}
+    IROTData_Release(rotdata);
+
     IMoniker_Release(moniker);
 
     IBindCtx_Release(bindctx);




More information about the wine-cvs mailing list