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
6dbee463
Commit
6dbee463
authored
Mar 06, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd: Implement IExecAction::put_WorkingDirectory.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
315be161
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
task.c
dlls/taskschd/task.c
+13
-2
No files found.
dlls/taskschd/task.c
View file @
6dbee463
...
...
@@ -1677,6 +1677,7 @@ typedef struct
IExecAction
IExecAction_iface
;
LONG
ref
;
WCHAR
*
path
;
WCHAR
*
directory
;
}
ExecAction
;
static
inline
ExecAction
*
impl_from_IExecAction
(
IExecAction
*
iface
)
...
...
@@ -1699,6 +1700,7 @@ static ULONG WINAPI ExecAction_Release(IExecAction *iface)
{
TRACE
(
"destroying %p
\n
"
,
iface
);
heap_free
(
action
->
path
);
heap_free
(
action
->
directory
);
heap_free
(
action
);
}
...
...
@@ -1824,8 +1826,16 @@ static HRESULT WINAPI ExecAction_get_WorkingDirectory(IExecAction *iface, BSTR *
static
HRESULT
WINAPI
ExecAction_put_WorkingDirectory
(
IExecAction
*
iface
,
BSTR
directory
)
{
FIXME
(
"%p,%s: stub
\n
"
,
iface
,
debugstr_w
(
directory
));
return
E_NOTIMPL
;
ExecAction
*
action
=
impl_from_IExecAction
(
iface
);
WCHAR
*
str
=
NULL
;
TRACE
(
"%p,%s
\n
"
,
iface
,
debugstr_w
(
directory
));
if
(
directory
&&
!
(
str
=
heap_strdupW
((
directory
))))
return
E_OUTOFMEMORY
;
heap_free
(
action
->
directory
);
action
->
directory
=
str
;
return
S_OK
;
}
static
const
IExecActionVtbl
Action_vtbl
=
...
...
@@ -1858,6 +1868,7 @@ static HRESULT ExecAction_create(IExecAction **obj)
action
->
IExecAction_iface
.
lpVtbl
=
&
Action_vtbl
;
action
->
ref
=
1
;
action
->
path
=
NULL
;
action
->
directory
=
NULL
;
*
obj
=
&
action
->
IExecAction_iface
;
...
...
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