Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
0d3ebfc4
Commit
0d3ebfc4
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 IExecAction_get_Path.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e0fbe82e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
task.c
dlls/taskschd/task.c
+14
-2
scheduler.c
dlls/taskschd/tests/scheduler.c
+13
-0
No files found.
dlls/taskschd/task.c
View file @
0d3ebfc4
...
...
@@ -1740,8 +1740,20 @@ static HRESULT WINAPI ExecAction_get_Type(IExecAction *iface, TASK_ACTION_TYPE *
static
HRESULT
WINAPI
ExecAction_get_Path
(
IExecAction
*
iface
,
BSTR
*
path
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
path
);
return
E_NOTIMPL
;
ExecAction
*
action
=
impl_from_IExecAction
(
iface
);
TRACE
(
"%p,%p
\n
"
,
iface
,
path
);
if
(
!
path
)
return
E_POINTER
;
if
(
!
action
->
path
)
{
*
path
=
NULL
;
return
S_OK
;
}
if
(
!
(
*
path
=
SysAllocString
(
action
->
path
)))
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
ExecAction_put_Path
(
IExecAction
*
iface
,
BSTR
path
)
...
...
dlls/taskschd/tests/scheduler.c
View file @
0d3ebfc4
...
...
@@ -1236,6 +1236,7 @@ static void create_action(ITaskDefinition *taskdef)
IAction
*
action
;
IExecAction
*
exec_action
;
TASK_ACTION_TYPE
type
;
BSTR
path
;
hr
=
ITaskDefinition_get_Actions
(
taskdef
,
&
actions
);
ok
(
hr
==
S_OK
,
"get_Actions error %#x
\n
"
,
hr
);
...
...
@@ -1251,9 +1252,21 @@ static void create_action(ITaskDefinition *taskdef)
ok
(
hr
==
S_OK
,
"get_Type error %#x
\n
"
,
hr
);
ok
(
type
==
TASK_ACTION_EXEC
,
"got %u
\n
"
,
type
);
path
=
(
BSTR
)
0xdeadbeef
;
hr
=
IExecAction_get_Path
(
exec_action
,
&
path
);
ok
(
hr
==
S_OK
,
"get_Path error %#x
\n
"
,
hr
);
ok
(
path
==
NULL
,
"path not set
\n
"
);
hr
=
IExecAction_put_Path
(
exec_action
,
task1_exe
);
ok
(
hr
==
S_OK
,
"put_Path error %#x
\n
"
,
hr
);
path
=
NULL
;
hr
=
IExecAction_get_Path
(
exec_action
,
&
path
);
ok
(
hr
==
S_OK
,
"get_Path error %#x
\n
"
,
hr
);
ok
(
path
!=
NULL
,
"path not set
\n
"
);
ok
(
!
lstrcmpW
(
path
,
task1_exe
),
"wrong path
\n
"
);
SysFreeString
(
path
);
IExecAction_Release
(
exec_action
);
IAction_Release
(
action
);
IActionCollection_Release
(
actions
);
...
...
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