mstask: Implement ITask::GetWorkItemData().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c00fbb5c0e
commit
c5d945c9f7
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue