Jacek Caban <[EMAIL PROTECTED]> writes:

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

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

-- 
Alexandre Julliard
[EMAIL PROTECTED]


Reply via email to