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
return S_OK;
}
static HRESULT WINAPI MSTASK_ITask_GetWorkItemData(
ITask* iface,
WORD *pcBytes,
BYTE **ppBytes)
static HRESULT WINAPI MSTASK_ITask_GetWorkItemData(ITask *iface, WORD *count, BYTE **data)
{
FIXME("(%p, %p, %p): stub\n", iface, pcBytes, ppBytes);
return E_NOTIMPL;
TaskImpl *This = impl_from_ITask(iface);
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(
......
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