MLANG: use Interlocked* in AddRef and Release
Daniel Remenak
dtremenak at gmail.com
Tue Sep 14 10:38:56 CDT 2004
On Tue, 14 Sep 2004 18:56:40 +0900, Mike McCormack <mike at codeweavers.com> wrote:
>
> ChangeLog:
> * use Interlocked* functions in AddRef and Release
>
<snip>
>
> static ULONG WINAPI fnIEnumCodePage_Release(
> IEnumCodePage* iface)
> {
> ICOM_THIS_MULTI(EnumCodePage_impl, vtbl_IEnumCodePage, iface);
> - ULONG ref = --This->ref;
> + ULONG ref = InterlockedIncrement(&This->ref);
operator-- changed to InterlockedIncrement instead of
InterlockedDecrement. Is that intentional?
--Daniel
More information about the wine-devel
mailing list