4 Jan
2005
4 Jan
'05
8:48 p.m.
Paul Vriens <Paul.Vriens(a)xs4all.nl> writes:
TRACE("(%p)->()\n", iface); - if (!--This->refCount) + if (!InterlockedDecrement(&This->refCount)) { CoTaskMemFree(This->ppFilters); CoTaskMemFree(This);
You also need to store the result of the decrement and have the function return that value instead of This->refCount, otherwise it's still not thread-safe. -- Alexandre Julliard julliard(a)winehq.org