[PATCH 4/5] scrrun: Implement IEnumVARIANT stub for folder collection (try2)
Dmitry Timoshkov
dmitry at baikal.ru
Fri Jan 3 08:05:10 CST 2014
Nikolay Sivov <nsivov at 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);
}
--
Dmitry.
More information about the wine-devel
mailing list