mshtml #2: Make get_typeinfo thread safe.

Alexandre Julliard julliard at winehq.org
Thu Aug 2 05:08:13 CDT 2007


Jacek Caban <jacek at codeweavers.com> writes:

>          }
> +
> +        tl = InterlockedExchangePointer((void**)&typelib, tl);
> +
> +        if(tl)
> +            ITypeLib_Release(tl);

That's not thread-safe. You need to use InterlockedCompareExchangePointer.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list