Nikolay Sivov nsivov@codeweavers.com wrote:
+static inline ULONG get_refcount(IUnknown *iface) +{
- ULONG ref = IUnknown_AddRef(iface);
- IUnknown_Release(iface);
- return ref-1;
+}
This one still looks somewhat strange. Why not do something more straightforward like the following one?
static inline ULONG get_refcount(IUnknown *iface) { IUnknown_AddRef(iface); return IUnknown_Release(iface); }