Nikolay Sivov : comsvcs: Implement Inverse() for "new" moniker.
Alexandre Julliard
julliard at winehq.org
Mon Nov 4 16:40:25 CST 2019
Module: wine
Branch: master
Commit: ab6274180b0823f2babdc4737b4b510ec15bea8b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ab6274180b0823f2babdc4737b4b510ec15bea8b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Nov 3 22:31:00 2019 +0300
comsvcs: Implement Inverse() for "new" moniker.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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);
}
More information about the wine-cvs
mailing list