[PATCH 2/5] d3d10: Add a stub ID3D10StateBlock implementation.
Nikolay Sivov
bunglehead at gmail.com
Mon Nov 14 23:21:26 CST 2011
On 11/14/2011 23:11, Henri Verbeet wrote:
> +static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface)
> +{
> + struct d3d10_stateblock *stateblock = impl_from_ID3D10StateBlock(iface);
> + ULONG refcount = InterlockedIncrement(&stateblock->refcount);
> +
> + TRACE("%p decreasing refcount to %u.\n", stateblock, refcount);
> +
> + if (!refcount)
> + HeapFree(GetProcessHeap(), 0, stateblock);
> +
> + return refcount;
> +}
Decrement maybe?
More information about the wine-devel
mailing list