[PATCH 3/9] mstask: ITask::GetErrorRetryCount() is not implemented.

Dmitry Timoshkov dmitry at baikal.ru
Fri Apr 20 03:37:12 CDT 2018


Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
 dlls/mstask/task.c       | 6 ++----
 dlls/mstask/tests/task.c | 7 +++++++
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/dlls/mstask/task.c b/dlls/mstask/task.c
index d144f98ee3..26cefcdc9f 100644
--- a/dlls/mstask/task.c
+++ b/dlls/mstask/task.c
@@ -386,11 +386,9 @@ static HRESULT WINAPI MSTASK_ITask_SetErrorRetryCount(
     return E_NOTIMPL;
 }
 
-static HRESULT WINAPI MSTASK_ITask_GetErrorRetryCount(
-        ITask* iface,
-        WORD *pwRetryCount)
+static HRESULT WINAPI MSTASK_ITask_GetErrorRetryCount(ITask *iface, WORD *count)
 {
-    FIXME("(%p, %p): stub\n", iface, pwRetryCount);
+    TRACE("(%p, %p)\n", iface, count);
     return E_NOTIMPL;
 }
 
diff --git a/dlls/mstask/tests/task.c b/dlls/mstask/tests/task.c
index cc855beb66..3739db0692 100644
--- a/dlls/mstask/tests/task.c
+++ b/dlls/mstask/tests/task.c
@@ -502,6 +502,7 @@ static void test_task_state(void)
     BOOL setup;
     HRESULT hr, status;
     DWORD flags;
+    WORD val1;
 
     setup = setup_task();
     ok(setup, "Failed to setup test_task\n");
@@ -534,6 +535,12 @@ static void test_task_state(void)
     hr = ITask_GetStatus(test_task, &status);
     ok(status == SCHED_S_TASK_NOT_SCHEDULED, "got %#x\n", status);
 
+    if (0) /* crashes under Windows */
+        hr = ITask_GetErrorRetryCount(test_task, NULL);
+
+    hr = ITask_GetErrorRetryCount(test_task, &val1);
+    ok(hr == E_NOTIMPL, "got %#x\n", hr);
+
     cleanup_task();
 }
 
-- 
2.16.3




More information about the wine-devel mailing list