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
c00fbb5c
Commit
c00fbb5c
authored
Jun 13, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement ITask::SetWorkItemData().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f9c8c202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
task.c
dlls/mstask/task.c
+30
-6
No files found.
dlls/mstask/task.c
View file @
c00fbb5c
...
...
@@ -58,6 +58,8 @@ typedef struct
LONG
ref
;
ITaskDefinition
*
task
;
IExecAction
*
action
;
BYTE
*
data
;
WORD
data_count
;
UUID
uuid
;
LPWSTR
task_name
;
HRESULT
status
;
...
...
@@ -87,6 +89,7 @@ static void TaskDestructor(TaskImpl *This)
if
(
This
->
action
)
IExecAction_Release
(
This
->
action
);
ITaskDefinition_Release
(
This
->
task
);
heap_free
(
This
->
data
);
heap_free
(
This
->
task_name
);
heap_free
(
This
->
accountName
);
heap_free
(
This
->
trigger
);
...
...
@@ -809,13 +812,32 @@ static HRESULT WINAPI MSTASK_ITask_GetCreator(ITask *iface, LPWSTR *creator)
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITask_SetWorkItemData
(
ITask
*
iface
,
WORD
cBytes
,
BYTE
rgbData
[])
static
HRESULT
WINAPI
MSTASK_ITask_SetWorkItemData
(
ITask
*
iface
,
WORD
count
,
BYTE
data
[])
{
FIXME
(
"(%p, %d, %p): stub
\n
"
,
iface
,
cBytes
,
rgbData
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
TRACE
(
"(%p, %u, %p)
\n
"
,
iface
,
count
,
data
);
if
(
count
)
{
if
(
!
data
)
return
E_INVALIDARG
;
heap_free
(
This
->
data
);
This
->
data
=
heap_alloc
(
count
);
if
(
!
This
->
data
)
return
E_OUTOFMEMORY
;
memcpy
(
This
->
data
,
data
,
count
);
This
->
data_count
=
count
;
}
else
{
if
(
data
)
return
E_INVALIDARG
;
heap_free
(
This
->
data
);
This
->
data
=
NULL
;
This
->
data_count
=
0
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
MSTASK_ITask_GetWorkItemData
(
...
...
@@ -1865,6 +1887,8 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
This
->
IPersistFile_iface
.
lpVtbl
=
&
MSTASK_IPersistFileVtbl
;
This
->
ref
=
1
;
This
->
task
=
taskdef
;
This
->
data
=
NULL
;
This
->
data_count
=
0
;
This
->
task_name
=
heap_strdupW
(
task_name
);
This
->
flags
=
0
;
This
->
status
=
SCHED_S_TASK_NOT_SCHEDULED
;
...
...
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