Dmitry Timoshkov : mstask: Implement IEnumWorkItems::Skip().

Alexandre Julliard julliard at winehq.org
Mon Jun 11 13:10:50 CDT 2018


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Jun 11 17:24:36 2018 +0800

mstask: Implement IEnumWorkItems::Skip().

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mstask/task_scheduler.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/dlls/mstask/task_scheduler.c b/dlls/mstask/task_scheduler.c
index fcade04..7998b3a 100644
--- a/dlls/mstask/task_scheduler.c
+++ b/dlls/mstask/task_scheduler.c
@@ -209,9 +209,17 @@ static HRESULT WINAPI EnumWorkItems_Next(IEnumWorkItems *iface, ULONG count, LPW
 
 static HRESULT WINAPI EnumWorkItems_Skip(IEnumWorkItems *iface, ULONG count)
 {
-    EnumWorkItemsImpl *This = impl_from_IEnumWorkItems(iface);
-    FIXME("(%p)->(%u): stub\n", This, count);
-    return E_NOTIMPL;
+    LPWSTR *names;
+    ULONG fetched;
+    HRESULT hr;
+
+    TRACE("(%p)->(%u)\n", iface, count);
+
+    hr = EnumWorkItems_Next(iface, count, &names, &fetched);
+    if (SUCCEEDED(hr))
+        free_list(names, fetched);
+
+    return hr;
 }
 
 static HRESULT WINAPI EnumWorkItems_Reset(IEnumWorkItems *iface)




More information about the wine-cvs mailing list