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
96cf60ec
Commit
96cf60ec
authored
Nov 30, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement ITaskDefinition_put_Triggers.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5083f2a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
task.c
dlls/taskschd/task.c
+13
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+10
-0
No files found.
dlls/taskschd/task.c
View file @
96cf60ec
...
...
@@ -1601,8 +1601,19 @@ static HRESULT WINAPI TaskDefinition_get_Triggers(ITaskDefinition *iface, ITrigg
static
HRESULT
WINAPI
TaskDefinition_put_Triggers
(
ITaskDefinition
*
iface
,
ITriggerCollection
*
triggers
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
triggers
);
return
E_NOTIMPL
;
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
triggers
);
if
(
!
triggers
)
return
E_POINTER
;
if
(
taskdef
->
triggers
)
ITriggerCollection_Release
(
taskdef
->
triggers
);
ITriggerCollection_AddRef
(
triggers
);
taskdef
->
triggers
=
triggers
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskDefinition_get_Settings
(
ITaskDefinition
*
iface
,
ITaskSettings
**
settings
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
96cf60ec
...
...
@@ -1094,6 +1094,7 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
{
HRESULT
hr
;
ITaskSettings
*
set
;
ITriggerCollection
*
triggers
;
hr
=
ITaskDefinition_get_Settings
(
taskdef
,
&
set
);
ok
(
hr
==
S_OK
,
"get_Settings error %#x
\n
"
,
hr
);
...
...
@@ -1158,6 +1159,15 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
hr
=
ITaskSettings_put_AllowDemandStart
(
set
,
test
->
allow_on_demand_start
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
triggers
=
NULL
;
hr
=
ITaskDefinition_get_Triggers
(
taskdef
,
&
triggers
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
triggers
!=
NULL
,
"triggers not set
\n
"
);
hr
=
ITaskDefinition_put_Triggers
(
taskdef
,
triggers
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
triggers
)
ITriggerCollection_Release
(
triggers
);
/* FIXME: set IIdleSettings and INetworkSettings */
ITaskSettings_Release
(
set
);
...
...
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