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
04e240b3
Commit
04e240b3
authored
Mar 30, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement setting and getting working directory using IExecAction.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cad2e5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
10 deletions
+35
-10
task.c
dlls/mstask/task.c
+35
-10
No files found.
dlls/mstask/task.c
View file @
04e240b3
...
@@ -533,20 +533,45 @@ static HRESULT WINAPI MSTASK_ITask_GetParameters(ITask *iface, LPWSTR *params)
...
@@ -533,20 +533,45 @@ static HRESULT WINAPI MSTASK_ITask_GetParameters(ITask *iface, LPWSTR *params)
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
MSTASK_ITask_SetWorkingDirectory
(
static
HRESULT
WINAPI
MSTASK_ITask_SetWorkingDirectory
(
ITask
*
iface
,
LPCWSTR
workdir
)
ITask
*
iface
,
LPCWSTR
pwszWorkingDirectory
)
{
{
FIXME
(
"(%p, %s): stub
\n
"
,
iface
,
debugstr_w
(
pwszWorkingDirectory
));
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %s)
\n
"
,
iface
,
debugstr_w
(
workdir
));
if
(
!
workdir
||
!
workdir
[
0
])
workdir
=
NULL
;
return
IExecAction_put_WorkingDirectory
(
This
->
action
,
(
BSTR
)
workdir
);
}
}
static
HRESULT
WINAPI
MSTASK_ITask_GetWorkingDirectory
(
static
HRESULT
WINAPI
MSTASK_ITask_GetWorkingDirectory
(
ITask
*
iface
,
LPWSTR
*
workdir
)
ITask
*
iface
,
LPWSTR
*
ppwszWorkingDirectory
)
{
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
ppwszWorkingDirectory
);
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
return
E_NOTIMPL
;
HRESULT
hr
;
BSTR
dir
;
DWORD
len
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
workdir
);
hr
=
IExecAction_get_WorkingDirectory
(
This
->
action
,
&
dir
);
if
(
hr
!=
S_OK
)
return
hr
;
len
=
dir
?
lstrlenW
(
dir
)
+
1
:
1
;
*
workdir
=
CoTaskMemAlloc
(
len
*
sizeof
(
WCHAR
));
if
(
*
workdir
)
{
if
(
!
dir
)
*
workdir
[
0
]
=
0
;
else
lstrcpyW
(
*
workdir
,
dir
);
hr
=
S_OK
;
}
else
hr
=
E_OUTOFMEMORY
;
SysFreeString
(
dir
);
return
hr
;
}
}
static
HRESULT
WINAPI
MSTASK_ITask_SetPriority
(
static
HRESULT
WINAPI
MSTASK_ITask_SetPriority
(
...
...
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