Commit c5d945c9 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

mstask: Implement ITask::GetWorkItemData().

parent c00fbb5c
...@@ -840,13 +840,26 @@ static HRESULT WINAPI MSTASK_ITask_SetWorkItemData(ITask *iface, WORD count, BYT ...@@ -840,13 +840,26 @@ static HRESULT WINAPI MSTASK_ITask_SetWorkItemData(ITask *iface, WORD count, BYT
return S_OK; return S_OK;
} }
static HRESULT WINAPI MSTASK_ITask_GetWorkItemData( static HRESULT WINAPI MSTASK_ITask_GetWorkItemData(ITask *iface, WORD *count, BYTE **data)
ITask* iface,
WORD *pcBytes,
BYTE **ppBytes)
{ {
FIXME("(%p, %p, %p): stub\n", iface, pcBytes, ppBytes); TaskImpl *This = impl_from_ITask(iface);
return E_NOTIMPL;
TRACE("(%p, %p, %p)\n", iface, count, data);
if (!This->data)
{
*count = 0;
*data = NULL;
}
else
{
*data = CoTaskMemAlloc(This->data_count);
if (!*data) return E_OUTOFMEMORY;
memcpy(*data, This->data, This->data_count);
*count = This->data_count;
}
return S_OK;
} }
static HRESULT WINAPI MSTASK_ITask_SetErrorRetryCount( static HRESULT WINAPI MSTASK_ITask_SetErrorRetryCount(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment