mstask: Forward IPersistFile::AddRef()/Release() to parent object.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
98241dfa5a
commit
37ae95dfd9
|
@ -754,22 +754,14 @@ static ULONG WINAPI MSTASK_IPersistFile_AddRef(
|
|||
IPersistFile* iface)
|
||||
{
|
||||
TaskImpl *This = impl_from_IPersistFile(iface);
|
||||
ULONG ref;
|
||||
TRACE("\n");
|
||||
ref = InterlockedIncrement(&This->ref);
|
||||
return ref;
|
||||
return ITask_AddRef(&This->ITask_iface);
|
||||
}
|
||||
|
||||
static ULONG WINAPI MSTASK_IPersistFile_Release(
|
||||
IPersistFile* iface)
|
||||
{
|
||||
TaskImpl *This = impl_from_IPersistFile(iface);
|
||||
ULONG ref;
|
||||
TRACE("\n");
|
||||
ref = InterlockedDecrement(&This->ref);
|
||||
if (ref == 0)
|
||||
TaskDestructor(This);
|
||||
return ref;
|
||||
return ITask_Release(&This->ITask_iface);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI MSTASK_IPersistFile_GetClassID(IPersistFile *iface, CLSID *clsid)
|
||||
|
|
Loading…
Reference in New Issue