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
01f63136
Commit
01f63136
authored
Nov 27, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskSettings_put_RestartCount.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
059382a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
task.c
dlls/taskschd/task.c
+7
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+3
-3
No files found.
dlls/taskschd/task.c
View file @
01f63136
...
...
@@ -951,8 +951,13 @@ static HRESULT WINAPI TaskSettings_get_RestartCount(ITaskSettings *iface, INT *c
static
HRESULT
WINAPI
TaskSettings_put_RestartCount
(
ITaskSettings
*
iface
,
INT
count
)
{
FIXME
(
"%p,%d: stub
\n
"
,
iface
,
count
);
return
E_NOTIMPL
;
TaskSettings
*
taskset
=
impl_from_ITaskSettings
(
iface
);
TRACE
(
"%p,%d
\n
"
,
iface
,
count
);
taskset
->
restart_count
=
count
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskSettings_get_MultipleInstances
(
ITaskSettings
*
iface
,
TASK_INSTANCES_POLICY
*
policy
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
01f63136
...
...
@@ -1105,6 +1105,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_RestartCount
(
set
,
test
->
restart_count
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_MultipleInstances
(
set
,
test
->
policy
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
/* FIXME: Remove once implemented */
...
...
@@ -1114,9 +1117,6 @@ todo_wine
return
;
}
hr
=
ITaskSettings_put_MultipleInstances
(
set
,
test
->
policy
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
hr
=
ITaskSettings_put_StopIfGoingOnBatteries
(
set
,
test
->
stop_if_going_on_batteries
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
...
...
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