mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
tests: Simplify get_refcount().
This commit is contained in:
parent
a680fdd91b
commit
6151119eef
@ -60,11 +60,11 @@ static size_t align(size_t addr, unsigned int alignment)
|
||||
return (addr + (alignment - 1)) & ~(alignment - 1);
|
||||
}
|
||||
|
||||
#define get_refcount(a) get_refcount_((IUnknown *)a)
|
||||
static ULONG get_refcount_(IUnknown *iface)
|
||||
static ULONG get_refcount(void *iface)
|
||||
{
|
||||
IUnknown_AddRef(iface);
|
||||
return IUnknown_Release(iface);
|
||||
IUnknown *unk = iface;
|
||||
IUnknown_AddRef(unk);
|
||||
return IUnknown_Release(unk);
|
||||
}
|
||||
|
||||
#define check_interface(a, b, c) check_interface_(__LINE__, (IUnknown *)a, b, c)
|
||||
|
Loading…
Reference in New Issue
Block a user