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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue