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
acacbbcb
Commit
acacbbcb
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_Principal.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4a0fa13f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
task.c
dlls/taskschd/task.c
+13
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+3
-0
No files found.
dlls/taskschd/task.c
View file @
acacbbcb
...
...
@@ -1879,8 +1879,19 @@ static HRESULT WINAPI TaskDefinition_get_Principal(ITaskDefinition *iface, IPrin
static
HRESULT
WINAPI
TaskDefinition_put_Principal
(
ITaskDefinition
*
iface
,
IPrincipal
*
principal
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
principal
);
return
E_NOTIMPL
;
TaskDefinition
*
taskdef
=
impl_from_ITaskDefinition
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
principal
);
if
(
!
principal
)
return
E_POINTER
;
if
(
taskdef
->
principal
)
IPrincipal_Release
(
taskdef
->
principal
);
IPrincipal_AddRef
(
principal
);
taskdef
->
principal
=
principal
;
return
S_OK
;
}
static
HRESULT
WINAPI
TaskDefinition_get_Actions
(
ITaskDefinition
*
iface
,
IActionCollection
**
actions
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
acacbbcb
...
...
@@ -1173,6 +1173,9 @@ static void change_settings(ITaskDefinition *taskdef, struct settings *test)
hr
=
ITaskDefinition_get_Principal
(
taskdef
,
&
principal
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
principal
!=
NULL
,
"principal not set
\n
"
);
hr
=
ITaskDefinition_put_Principal
(
taskdef
,
principal
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
principal
)
IPrincipal_Release
(
principal
);
/* FIXME: set IIdleSettings and INetworkSettings */
...
...
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