[PATCH 6/6] comsvcs: Implement Inverse() for "new" moniker.

Nikolay Sivov nsivov at codeweavers.com
Sun Nov 3 13:31:00 CST 2019


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/comsvcs/main.c          | 4 ++--
 dlls/comsvcs/tests/comsvcs.c | 5 +----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/comsvcs/main.c b/dlls/comsvcs/main.c
index d772365dda..6b292844d9 100644
--- a/dlls/comsvcs/main.c
+++ b/dlls/comsvcs/main.c
@@ -584,9 +584,9 @@ static HRESULT WINAPI new_moniker_GetTimeOfLastChange(IMoniker *iface, IBindCtx
 
 static HRESULT WINAPI new_moniker_Inverse(IMoniker *iface, IMoniker **inverse)
 {
-    FIXME("%p, %p.\n", iface, inverse);
+    TRACE("%p, %p.\n", iface, inverse);
 
-    return E_NOTIMPL;
+    return CreateAntiMoniker(inverse);
 }
 
 static HRESULT WINAPI new_moniker_CommonPrefixWith(IMoniker *iface, IMoniker *other, IMoniker **ret)
diff --git a/dlls/comsvcs/tests/comsvcs.c b/dlls/comsvcs/tests/comsvcs.c
index 5fb73d29ca..37fce3dab4 100644
--- a/dlls/comsvcs/tests/comsvcs.c
+++ b/dlls/comsvcs/tests/comsvcs.c
@@ -358,16 +358,13 @@ todo_wine
     ok(hr == MK_E_NOSTORAGE, "Unexpected hr %#x.\n", hr);
 
     hr = IMoniker_Inverse(moniker, &inverse);
-todo_wine
     ok(hr == S_OK, "Failed to create inverse moniker, hr %#x.\n", hr);
-if (SUCCEEDED(hr))
-{
     moniker_type = MKSYS_NONE;
     hr = IMoniker_IsSystemMoniker(inverse, &moniker_type);
     ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
     ok(moniker_type == MKSYS_ANTIMONIKER, "Unexpected moniker type %d.\n", moniker_type);
     IMoniker_Release(inverse);
-}
+
     IMoniker_Release(moniker);
     IBindCtx_Release(bindctx);
 }
-- 
2.24.0.rc1




More information about the wine-devel mailing list