Re: [PATCH 4/5] scrrun: Implement IEnumVARIANT stub for folder collection (try2)
3 Jan
2014
3 Jan
'14
2:05 p.m.
Nikolay Sivov <nsivov(a)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.
4362
Age (days ago)
4362
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov