mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:08:19 +00:00
adsldp: Forward IADsOpenDSObject::AddRef/Release to base object.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0662aaaddc
commit
2512bf2c1d
|
@ -806,21 +806,13 @@ static HRESULT WINAPI openobj_QueryInterface(IADsOpenDSObject *iface, REFIID rii
|
|||
static ULONG WINAPI openobj_AddRef(IADsOpenDSObject *iface)
|
||||
{
|
||||
LDAP_namespace *ldap = impl_from_IADsOpenDSObject(iface);
|
||||
return InterlockedIncrement(&ldap->ref);
|
||||
return IADs_AddRef(&ldap->IADs_iface);
|
||||
}
|
||||
|
||||
static ULONG WINAPI openobj_Release(IADsOpenDSObject *iface)
|
||||
{
|
||||
LDAP_namespace *ldap = impl_from_IADsOpenDSObject(iface);
|
||||
LONG ref = InterlockedDecrement(&ldap->ref);
|
||||
|
||||
if (!ref)
|
||||
{
|
||||
TRACE("destroying %p\n", iface);
|
||||
HeapFree(GetProcessHeap(), 0, ldap);
|
||||
}
|
||||
|
||||
return ref;
|
||||
return IADs_Release(&ldap->IADs_iface);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI openobj_GetTypeInfoCount(IADsOpenDSObject *iface, UINT *count)
|
||||
|
|
Loading…
Reference in a new issue