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
759ef6a4
Commit
759ef6a4
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_Actions.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0858ec0
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 @
759ef6a4
...
...
@@ -2093,8 +2093,19 @@ static HRESULT WINAPI TaskDefinition_get_Actions(ITaskDefinition *iface, IAction
static
HRESULT
WINAPI
TaskDefinition_put_Actions
(
ITaskDefinition
*
iface
,
IActionCollection
*
actions
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
actions
);
return
E_NOTIMPL
;
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
actions
);
if
(
!
actions
)
return
E_POINTER
;
if
(
taskdef
->
actions
)
IActionCollection_Release
(
taskdef
->
actions
);
IActionCollection_AddRef
(
actions
);
taskdef
->
actions
=
actions
;
return
S_OK
;
}
static
const
WCHAR
Task
[]
=
{
'T'
,
'a'
,
's'
,
'k'
,
0
};
...
...
dlls/taskschd/tests/scheduler.c
View file @
759ef6a4
...
...
@@ -1096,6 +1096,7 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ITaskSettings
*
set
;
ITriggerCollection
*
triggers
;
IPrincipal
*
principal
;
IActionCollection
*
actions
;
hr
=
ITaskDefinition_get_Settings
(
taskdef
,
&
set
);
ok
(
hr
==
S_OK
,
"get_Settings error %#x
\n
"
,
hr
);
...
...
@@ -1178,6 +1179,15 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
principal
)
IPrincipal_Release
(
principal
);
actions
=
NULL
;
hr
=
ITaskDefinition_get_Actions
(
taskdef
,
&
actions
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
actions
!=
NULL
,
"actions not set
\n
"
);
hr
=
ITaskDefinition_put_Actions
(
taskdef
,
actions
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
actions
)
IActionCollection_Release
(
actions
);
/* 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