Commit 37ae95df authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

mstask: Forward IPersistFile::AddRef()/Release() to parent object.

parent 98241dfa
...@@ -754,22 +754,14 @@ static ULONG WINAPI MSTASK_IPersistFile_AddRef( ...@@ -754,22 +754,14 @@ static ULONG WINAPI MSTASK_IPersistFile_AddRef(
IPersistFile* iface) IPersistFile* iface)
{ {
TaskImpl *This = impl_from_IPersistFile(iface); TaskImpl *This = impl_from_IPersistFile(iface);
ULONG ref; return ITask_AddRef(&This->ITask_iface);
TRACE("\n");
ref = InterlockedIncrement(&This->ref);
return ref;
} }
static ULONG WINAPI MSTASK_IPersistFile_Release( static ULONG WINAPI MSTASK_IPersistFile_Release(
IPersistFile* iface) IPersistFile* iface)
{ {
TaskImpl *This = impl_from_IPersistFile(iface); TaskImpl *This = impl_from_IPersistFile(iface);
ULONG ref; return ITask_Release(&This->ITask_iface);
TRACE("\n");
ref = InterlockedDecrement(&This->ref);
if (ref == 0)
TaskDestructor(This);
return ref;
} }
static HRESULT WINAPI MSTASK_IPersistFile_GetClassID(IPersistFile *iface, CLSID *clsid) static HRESULT WINAPI MSTASK_IPersistFile_GetClassID(IPersistFile *iface, CLSID *clsid)
......
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