Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
60a84d0e
Commit
60a84d0e
authored
Jul 15, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Return SCHED_S_TASK_HAS_NOT_RUN from regtask_get_LastRunTime() stub.
parent
6e7f5f8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
regtask.c
dlls/taskschd/regtask.c
+1
-1
scheduler.c
dlls/taskschd/tests/scheduler.c
+16
-0
No files found.
dlls/taskschd/regtask.c
View file @
60a84d0e
...
...
@@ -205,7 +205,7 @@ static HRESULT WINAPI regtask_GetInstances(IRegisteredTask *iface, LONG flags, I
static
HRESULT
WINAPI
regtask_get_LastRunTime
(
IRegisteredTask
*
iface
,
DATE
*
date
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
date
);
return
E_NOTIMPL
;
return
SCHED_S_TASK_HAS_NOT_RUN
;
}
static
HRESULT
WINAPI
regtask_get_LastTaskResult
(
IRegisteredTask
*
iface
,
LONG
*
result
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
60a84d0e
...
...
@@ -744,6 +744,7 @@ static void test_GetTask(void)
ITaskService
*
service
;
ITaskFolder
*
root
,
*
folder
;
IRegisteredTask
*
task1
,
*
task2
;
DATE
date
;
IID
iid
;
int
i
;
...
...
@@ -840,6 +841,9 @@ static void test_GetTask(void)
ok
(
hr
==
S_OK
,
"get_Enabled error %#lx
\n
"
,
hr
);
ok
(
vbool
==
VARIANT_FALSE
,
"expected VARIANT_FALSE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_LastRunTime
(
task1
,
&
date
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#lx
\n
"
,
hr
);
IRegisteredTask_Release
(
task1
);
hr
=
ITaskFolder_RegisterTask
(
folder
,
Task1
,
xmlW
,
TASK_CREATE
,
v_null
,
v_null
,
TASK_LOGON_NONE
,
v_null
,
&
task2
);
...
...
@@ -865,6 +869,9 @@ static void test_GetTask(void)
ok
(
hr
==
S_OK
,
"get_Enabled error %#lx
\n
"
,
hr
);
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_LastRunTime
(
task2
,
&
date
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#lx
\n
"
,
hr
);
IRegisteredTask_Release
(
task2
);
hr
=
ITaskFolder_GetTask
(
root
,
NULL
,
&
task1
);
...
...
@@ -891,6 +898,9 @@ static void test_GetTask(void)
ok
(
hr
==
S_OK
,
"get_Enabled error %#lx
\n
"
,
hr
);
ok
(
vbool
==
VARIANT_FALSE
,
"expected VARIANT_FALSE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_LastRunTime
(
task1
,
&
date
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#lx
\n
"
,
hr
);
hr
=
IRegisteredTask_put_Enabled
(
task1
,
VARIANT_TRUE
);
ok
(
hr
==
S_OK
,
"put_Enabled error %#lx
\n
"
,
hr
);
hr
=
IRegisteredTask_get_State
(
task1
,
&
state
);
...
...
@@ -902,6 +912,9 @@ static void test_GetTask(void)
todo_wine
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_LastRunTime
(
task1
,
&
date
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#lx
\n
"
,
hr
);
IRegisteredTask_Release
(
task1
);
hr
=
ITaskFolder_GetTask
(
folder
,
Task2
,
&
task2
);
...
...
@@ -922,6 +935,9 @@ static void test_GetTask(void)
ok
(
hr
==
S_OK
,
"get_Enabled error %#lx
\n
"
,
hr
);
ok
(
vbool
==
VARIANT_TRUE
,
"expected VARIANT_TRUE, got %d
\n
"
,
vbool
);
hr
=
IRegisteredTask_get_LastRunTime
(
task2
,
&
date
);
ok
(
hr
==
SCHED_S_TASK_HAS_NOT_RUN
,
"got %#lx
\n
"
,
hr
);
hr
=
IRegisteredTask_get_State
(
task2
,
NULL
);
ok
(
hr
==
E_POINTER
,
"expected E_POINTER, got %#lx
\n
"
,
hr
);
hr
=
IRegisteredTask_get_Enabled
(
task2
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment