Nikolay Sivov : comsvcs: Add GetTimeOfLastChange() for "new" moniker.

Alexandre Julliard julliard at winehq.org
Tue Nov 5 16:11:44 CST 2019


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Nov  5 13:09:27 2019 +0300

comsvcs: Add GetTimeOfLastChange() 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 | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/comsvcs/main.c b/dlls/comsvcs/main.c
index 6b292844d9..ee75893561 100644
--- a/dlls/comsvcs/main.c
+++ b/dlls/comsvcs/main.c
@@ -577,9 +577,9 @@ static HRESULT WINAPI new_moniker_IsRunning(IMoniker* iface, IBindCtx *pbc, IMon
 static HRESULT WINAPI new_moniker_GetTimeOfLastChange(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft,
         FILETIME *itemtime)
 {
-    FIXME("%p, %p, %p, %p.\n", iface, pbc, pmkToLeft, itemtime);
+    TRACE("%p, %p, %p, %p.\n", iface, pbc, pmkToLeft, itemtime);
 
-    return E_NOTIMPL;
+    return MK_E_UNAVAILABLE;
 }
 
 static HRESULT WINAPI new_moniker_Inverse(IMoniker *iface, IMoniker **inverse)
diff --git a/dlls/comsvcs/tests/comsvcs.c b/dlls/comsvcs/tests/comsvcs.c
index 37fce3dab4..bdb817a144 100644
--- a/dlls/comsvcs/tests/comsvcs.c
+++ b/dlls/comsvcs/tests/comsvcs.c
@@ -344,7 +344,6 @@ todo_wine
     ok(hr == S_FALSE, "Unexpected hr %#x.\n", hr);
 
     hr = IMoniker_GetTimeOfLastChange(moniker, bindctx, NULL, &filetime);
-todo_wine
     ok(hr == MK_E_UNAVAILABLE, "Unexpected hr %#x.\n", hr);
 
     hr = IMoniker_BindToObject(moniker, bindctx, NULL, &IID_IUnknown, (void **)&obj);




More information about the wine-cvs mailing list